This will display only lines 40-50 in a file called lines.txt.
$ cat lines.txt | head -n 50 | tail -n 10 |
For lines 90-100.
$ cat lines.txt | head -n 100 | tail -n 10 |
and so on.
cloud engineer
This will display only lines 40-50 in a file called lines.txt.
$ cat lines.txt | head -n 50 | tail -n 10 |
$ cat lines.txt | head -n 50 | tail -n 10
For lines 90-100.
$ cat lines.txt | head -n 100 | tail -n 10 |
$ cat lines.txt | head -n 100 | tail -n 10
and so on.
Here’s how to display history without the line numbers.
history -w /dev/stdout |
history -w /dev/stdout
Result
cd /etc/httpd/conf view httpd.conf vim wiki.conf vim ssl.conf |
cd /etc/httpd/conf view httpd.conf vim wiki.conf vim ssl.conf