标签:linux命令-head
head :output the first part of files :输出文件首部
head选项:
-c ,--bytes=[-]k :print the first K bytes of each file; with the leading ‘-’,print all but the last K bytes of each file : 打印文件前k个字符,必须有k值,-k表示打印文件至倒数第k个字符位置,第k个字符会被打印出来。
-n ,--lines=[-]K :print the first K lines instead of the first 10; with the leading ‘-’, print all but the last K lines of each file :不加k也行,默认打印10行,-k用法同-c中的-k相同。
标签:linux命令-head
原文地址:http://fbzl1990.blog.51cto.com/9276609/1739911