[NTLUG:Discuss] awk question I think

Bobby Wrenn bjwrenn at augustmail.com
Thu Aug 8 09:22:05 CDT 2002


OK I'm getting to the point of being dangerous with sed. Now I have a comma 
delimited file where I need to trim some characters out of a field.

What I would like to do is take the last 4 characters of the fifth field and 
place them in a new field. The new field can be at the beggining or end of 
the record.

Is this a problem for awk? If so, any pointers?

TIA
Bobby




More information about the Discuss mailing list