Linux 操作系统cat命令详解:
0 1 2 3 4 5 6 7 |
[root@Byrd test]# cat [-AbEnTv] //cat(concatenate) 参数: -n:打印出行号,连同空白行也会有行号,与-b的参数不通; -A:相当于 –vET 的参数整合,可列出一些特殊字符,而不是空白而已; -b:列出行号,仅针对非空白行做行号显示,而不是空白而已; -E:将结尾的断行子以$显示出来; -T:将[tab]按键以^I显示出来; -v:列出一些看不出来的特殊字符; |
Man 参数:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
-A, --show-all equivalent to -vET -b, --number-nonblank number nonempty output lines -e equivalent to -vE -E, --show-ends display $ at end of each line -n, --number number all output lines -s, --squeeze-blank suppress repeated empty output lines -t equivalent to -vT -T, --show-tabs display TAB characters as ^I -u (ignored) -v, --show-nonprinting use ^ and M- notation, except for LFD and TAB --help display this help and exit --version output version information and exit With no FILE, or when FILE is -, read standard input. |
申明:以上内容分别来自鸟哥的linux私房菜、以及centos 6.4的man cat!!! SourceByrd's Weblog-https://note.t4x.org/system/concatenate-and-standard/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!