View Single Post
Old 2014-10-31, 19:07   #6
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

2,917 Posts
Default

Quote:
Originally Posted by Batalov View Post
awk

For example
awk '{print "PRP="$1",2,"$2",-1"}' infile > outfile
and then take care of the 1st line (the header) in an editor
awk '{if(NR==1){print;}else{print "PRP="$1",2,"$2",-1"}' infile >outfile

:)
Mark Rose is offline   Reply With Quote