On 2013-11-19 18:16, Harry Penner wrote: 

> Try printf. This example would give you just the first 3 characters of field 6 as your example intended: 
> 
> awk -F ';' '{ printf( "%.3s", $6) }'

If you want to print out the whole row with field #6 modified, try this 

awk -F';' 'BEGIN { OFS=";"}
 {$6=substr($6, 0, 3); print $0;}' 

-- 
Kathryn Hogg
http://womensfooty.com
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20131119/cd47f392/attachment.html>