The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Search Results
Showing results 1 to 1 of 1
Search took
0.01
seconds.
Search:
Posts Made By:
ayan153
Forum:
Shell Programming and Scripting
10-09-2011
2
Moving a column across a delimited data file
5,010
Posted By
birei
Hi ayan153, Try: $ cat infile ...
Hi ayan153,
Try:
$ cat infile
Col1|Col2|Col3|Col4|Col5
a1|b1|c1|d1|e1
a2|b2|c2|d2|e2
a3|b3|c3|d3|e3
$ awk -v icp=1 -v fcp=3 -v d="|" 'BEGIN { FS=OFS=d } { column=$fcp; $fcp=$icp;...
Showing results 1 to 1 of 1
Member Badges and Information Modal
×