You're viewing a comment by yogesh and its responses.

yogesh Permalink
August 31, 2011, 07:54

if i have a file master.txt containing 4000 lines,
i want to cut (not print, copy) first 10 lines and paste in a file called data1.txt,
then run a command (submit a job) as
"bsub -K -qio ./runjob.txt" .
the file runjob.txt contains a single line as "./doo data1.txt ."
So, I need to delete (remove content of it) the file data1.txt, so that next 10 lines of master.txt will be in data1.txt to process.
there should be 400 iterations.
is there a way to do it in a loop using awk/sed?

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the first letter of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.