Say you have a txt file, what is the command to view the top 10 lines and bottom 10 lines of file simultaneously?
i.e. if the file is 200 lines long, then view lines
ed is the standard text editor
ed
standard text editor
$ echo -e '1+10,$-10d\n%p' | ed -s file.txt