[TriLUG] Need some help parsing a file

John Vaughters jvaughters04 at yahoo.com
Mon Dec 30 10:01:09 EST 2013


Peter did make me think of one nice little feature about cut that I use to find the correct field.

echo '11/09/2013  11:49 AM        7,887,098 this is filename 1.txt' | cut -d ' ' -f 16


That is what will work. But what I did to find it is this 

echo '11/09/2013  11:49 AM        7,887,098 this is filename 1.txt' | cut -d ' ' -f 8,12,15,16


Basically each space adds another field and to find the field you want can put multiple fields.



On Monday, December 30, 2013 9:51 AM, John Vaughters <jvaughters04 at yahoo.com> wrote:
 




Hahaha,



Thanks for the Humility Peter. I Imagine with a little extra work you were able to make it work. 

Concept is the same. Hence disclaimer.
-- 
This message was sent to: John Vaughters <jvaughters04 at yahoo.com>
To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
Unsubscribe or edit options on the web    : http://www.trilug.org/mailman/options/trilug/jvaughters04%40yahoo.com
Welcome to TriLUG: http://trilug.org/welcome


More information about the TriLUG mailing list