sed -n '10-11'p filename | less -N -n G | less +100 -N file
[root@localhost java]# sed -n '99,100'p ff
gshadow-
gss
less
-N / -n show/hide number lines
gshadow-
gss
-N / -n show/hide number lines
less +12345 -N /var/log/hugelogfile
This will open a file displaying the line numbers and starting at line 12345
g and the line number to go forward
G and the line number to go backwards
G goes to the bottom of the file
Comments
Post a Comment