1
I have a very large text file and I want to view, say, lines 2000 through 2010 (with the line numbers included)
I know one sort of roundabout way of getting there:
sc -l [file]
cat -n [file] | tail -n [previous result - 2000] | head -n 10
But it feels like there must be a better way. Is there?
1Your last command can be simplified to head -2010 FileName | tail -10. – amit_g – 2012-12-07T19:06:36.113
@amit_g: Ha, good call. Somehow I totally missed that one. – Dan Tao – 2012-12-07T19:13:26.153