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

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

Popular posts from this blog

HAproxy logging

tomcat catalina coyote jasper cluster

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all