氺菓
或标准输入组合输出到标准输出

[mw_shl_code=bash,true]Usage: cat [OPTION] [FILE]...

Concatenate FILE(s), or standard input, to standard output.

-A, --show-all equivalent to -vET

-b, --number-nonblank number nonblank output lines

-e equivalent to -vE

-E, --show-ends display $ at end of each line

-n, --number number all output lines

-s, --squeeze-blank never more than one single blank line

-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.

Examples:

cat f - g Output f's contents, then standard input, then g's contents.

cat Copy standard input to standard output.[/mw_shl_code]

中文:

[mw_shl_code=bash,true]用法:cat [选项] [文件]...

将[文件]或标准输入组合输出到标准输出。

-A, --show-all 等价于 -vET

-b, --number-nonblank 对非空输出行编号

-e 等价于 -vE

-E, --show-ends 在每行结束处显示 $

-n, --number 对输出的所有行编号

-s, --squeeze-blank 不输出多行空行

-t 与 -vT 等价

-T, --show-tabs 将跳格字符显示为 ^I

-u (被忽略)

-v, --show-nonprinting 使用 ^ 和 M- 引用,除了 LFD 和 TAB 之外

--help 显示此帮助信息并退出

--version 输出版本信息并退出

如果[文件]缺省,或者[文件]为 - ,则读取标准输入。

示例:

cat f - g 先输出 f 的内容,然后输出标准输入的内容,最后输出 g 的内容。

cat 将标准输入的内容复制到标准输出。[/mw_shl_code]