Search Results

Search: Posts Made By: jim mcnamara
79,791
Posted By jim mcnamara
Well change the loop to read for(i=2; i<=NR;i++) ...
Well change the loop to read for(i=2; i<=NR;i++)

I did not catch the requirment on not printing $1
79,791
Posted By jim mcnamara
awk '{ for(i=1; i<=NF; i++) {printf("%s ", $i)} ...
awk '{ for(i=1; i<=NF; i++) {printf("%s ", $i)}
print $NF
} ' inputfile > outputfile
Showing results 1 to 2 of 2

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