现在的位置: 首页 > 综合 > 正文

70、linux shell常用函数,head

2012年09月14日 ⁄ 综合 ⁄ 共 328字 ⁄ 字号 评论关闭

1、head - output the first part of files

head [OPTION]... [FILE]...

2、option

① -c, --bytes=[-]N:print the first N bytes of each file;

② -n, --lines=[-]N:print the first N lines instead of the first 10; with the leading '-', print all but the last N lines of each file

③ -q, never print headers giving file names

④ -v,always print headers giving file names

参考

【1】 http://linux.die.net/man/1/head

抱歉!评论已关闭.