Simple Computational tricks
Friday, January 31, 2014
Reverse the order of rows
sed
-
n
'1!G;h;$p' file1 > file2
Copying n1 and n2 columns from data file 'file1' and writing in to a newly created file 'file2'
awk '{print $n1 "\t" $n2}' file1 > file2
Newer Posts
Home
Subscribe to:
Posts (Atom)