Thursday, September 5, 2013

LINUX: Going to the specific line in the huge text file....



You can use sed for this:

sed -n '320123'p filename

This will print line number 320123.


If you want a range then you can do:

sed -n '320123,320150'p filename


If you want from a particular line to the very end then:

sed -n '320123,$'p filename

No comments: