题解 | #打印文件的最后5行#
打印文件的最后5行
https://www.nowcoder.com/practice/ff6f36d357d24ce5a0eb817a0ef85ee2
You can use the Tail method to choose the order of the locating, then use the negative number option to decide the lines you want to display:
tail -3 alphabetfile
Display the last lines of a file in Unix
19 Tools for handling text files on unix are basic, everyday-commands: