Search Results

Search: Posts Made By: dustinwang2003
1,025
Posted By ahamed101
You need to use printf in your code awk...
You need to use printf in your code


awk '{for(i=2;i<=NF;i++)printf "%s ",$i;print $1}' infile


or


awk '{x=$1;sub(x,""); print $0,x}' infile


--ahamed
Showing results 1 to 1 of 1

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