Search Results

Search: Posts Made By: SriniShoo
2,087
Posted By SriniShoo
The code worked fine for me with the tab...
The code worked fine for me with the tab separated data you have provided and generated the expected output
Unless you make any changes to the provided code, it should work fine
2,087
Posted By SriniShoo
awk 'BEGIN{FS=OFS="\t"} NR == 1{print ("ODT"...
awk 'BEGIN{FS=OFS="\t"}
NR == 1{print ("ODT" FS "AGE" FS "CDT" FS "CO" FS "SEX" FS "TIME" FS "NUMB" FS "STARING_COM" FS "STRING_STATUS");
next}
NR > 1 && $8 == "b" {$9 = $8; $8 = ""}1' file
Showing results 1 to 2 of 2

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