|
how to keep Field Separator in AWK when using a sub statement
Ok so here is my little one liner:
cat somefile.txt | awk -F\| '{ sub(//,"999",$3); print }'
The delimiter is a | and the results end up without anything but spaces which ruins my output.
I know there is a fairly easy way to avoid this - anyone?
|