View Single Post
Old 2014-10-31, 19:19   #7
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

918210 Posts
Default

Perfectionism notwithstanding, there's no limit what can be further beautified :)

If you have 400 lines in input and 8 cores for Prime95 to follow,

awk '{if(NR%50==1){print "[Worker #"int(NR/50)+1"]"} if(NR>1){print "PRP="$1",2,"$2",-1"}}' infile >outfile
Batalov is offline   Reply With Quote