Dear All,
Is there a way to cut the lines that have been "head"
Here is what i m trying to do Please advice
there is file name dummy.txt
now i am trying to head this file 4 time by using a loop and every time this file is head with different values
e.g in first instance it will be head -1 for second interval it will be head -20 and so on.
these intevaral are random and are been generated by a counter evertime a script is executed counter bounce with a new value and according to that value file will be "head" four times.
Now the issue is, during the first interval if file is "head 5" times (i.e. head -5) output must be saved with a new file extension, and when its executed second time for (head -10) file should start from (6th value to 16th value and not from 1st to 10th) and so on.
please advice from this point..
Thankz in advance