【发布时间】:2014-08-15 16:36:13
【问题描述】:
这只是我无法解决的好奇心(尝试 sed、awk、tail、head 等)。
这行得通:
$ ls --help | head -n 2
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
为什么其他命令不起作用?
$ tree --help | head -n 2
Prints the whole --help! not just the first 2 lines!
【问题讨论】: