[TriLUG] Need some help parsing a file

Peter Neilson neilson at windstream.net
Mon Dec 30 10:45:39 EST 2013


On Mon, 30 Dec 2013 10:08:25 -0500, John Vaughters  
<jvaughters04 at yahoo.com> wrote:

> Brian,
>
> The awk actually worked as shown. It is more friendly when figuring out  
> fields than cut, but still I use cut because it is easy to remember.
>
> echo '11/09/2013  11:49 AM        7,887,098 this is filename 1.txt' |   
> awk '{print $8}'

Hmmm. Why then do I get this:

$ echo '11/09/2013  11:49 AM        7,887,098 this is filename 1.txt' |  
awk '{print $8}'
1.txt
$

The correct string would be:
this is filename 1.txt



More information about the TriLUG mailing list