命令十五: tail

tail,常用来显示文件末尾的文字块,其命令格式为tail [参数] 文件

1. 显示文件末尾5行

tail -n 5 test.c

2. 从第五行开始显示文件

tail -n +5 test.c


参考:

https://www.cnblogs.com/peida/archive/2012/11/07/2758084.html

猜你喜欢

转载自blog.csdn.net/Ahead_J/article/details/84752426
今日推荐