awk script forgets tabs
I have the following awk command:
awk -F"\t" '$1=="ART" && $2=="49011000" {$2="49111090";$6="00"}; {print $0}' test
the file is tab seperated, when the 1st field is "ART" and the 2nd field is "49011000" then the 2nd and the 6th field are changed. works great, except that the output lines wich are changed don't have the tabs anymore, those are replaced with spaces... the unaffected lines come through with all tabs correct. anyone knows why and how to solve this?
thanx in advance,
.-=~ iluvatar ~=-.
|