Possible Duplicate:
cat line X to line Y on a huge file
Very simple issue but can't seem to find a simple resolution!
I have a massive text file from which I only need around 150 lines. The lines are really long and therefore viewing it in putty is a bit of a nightmare. I just want to copy these lines to another file so that I can view it properly in an editor. (I can't view the original file in an editor as my Windows machine can't handle it).
The lines I want start at around line 2000.
Thanks,
sed -n '2000,2150p' youfile| xsel
– McNisse Jan 18 '13 at 10:01xsel
? – Bernhard Jan 18 '13 at 10:07more
orless
remotely. Remember to resize the PuTTY window to get some more context. – peterph Jan 18 '13 at 10:59xsel
there is no need to copy the file as well. – McNisse Jan 18 '13 at 13:27