I have 10 files all called file1, file2, file3 etc
I need to automate the process so that the following can be done automatically.
I start with the highest numerical file number and cat that to the next highest in sequence, then remove the highest like so......
cat file10 >> file 9
rm file10
cat file9 >> file8
rm file9
etc..............
Is there an easy way to do this ?
So far i have tried several ways and each one deletes the end file created - file1!
Help me please I am losing the will to live !
I need to automate the process so that the following can be done automatically.
I start with the highest numerical file number and cat that to the next highest in sequence, then remove the highest like so......
cat file10 >> file 9
rm file10
cat file9 >> file8
rm file9
etc..............
Is there an easy way to do this ?
So far i have tried several ways and each one deletes the end file created - file1!
Help me please I am losing the will to live !