Going to a specific line using Unix command | sheldon cooper 2.0のブログ

sheldon cooper 2.0のブログ

ブログの説明を入力します。

- You can use sed for this too -

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