Search Results

Search: Posts Made By: jujulips
3,390
Posted By Franklin52
Try: awk 'NR==1{split($0,a,"/");next} {print...
Try:
awk 'NR==1{split($0,a,"/");next}
{print "IN\tTAUX" ++c "\t" a[3] a[2] a[1] "D\t" $1 "\t" $1}
' RS=";" file
2,342
Posted By danmero
Set the OFS, see awk cheat sheet (.pdf)...
Set the OFS, see awk cheat sheet (.pdf) (http://www.catonmat.net/download/awk.cheat.sheet.pdf)
FS=OFS="|"
2,342
Posted By paulr211
GAWK removes FS | on output
I have the simple gawk script below. When the script runs in the output of all the ITM lines the FS is replaced with a space, the Non ITM lines retain the | field separator.

The ITM lines have...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy