Copying parts of a text file
Hi, I'm wondering what commands to use to be able to copy a certain number of lines from a text file. For instance, say i wanted to copy the first 10 lines and the last 3 lines and put them into a seperate file.
I have been able to use grep to grab lines from the start of a text file but i am stuck on how to grab them from the end of a file. Any help would be appreciated.
|