Created
March 13, 2016 11:36
-
-
Save zhangzhiqiangcs/dce5f83e4850d5ffbfdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
显示文件指定行的内容 | |
sed -n '5p' file | |
只看前n行内容 | |
head -n file | |
只看后n行内容 | |
tail -n file | |
只看第n到m行的内容 | |
sed -n 'n,mp' file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment