There is a difference between Mac and CentOS above cat
Usage on Mac:
yuanlongair:~ ylchou$ cat--helpcat:illegal option---usage:cat [-BENSTUV] [File ...]
How to use Cat on centos6.5:
[email protected] ~]# cat--version
Cat (GNU coreutils) 8.4Copyright (C) Free Software Foundation, Inc. License: GPLV3+:GNU general Public License version 3rd or later
There are more on CentOS than on Mac-A, E,-T, as follows:
[Root@zyl ~]# Cat--help
Usage: cat [options]... [file] ... Output the [file] or standard input combination to the standard output. -A, --show-all equals-vet -b, --number-nonblank number of non-null output lines -e equals-ve -e, --show-ends displays "$" at the end of each line -n, --number Numbering all lines of output -s, --squeeze-blank not outputting multiple lines of blank lines -t and-vt equivalent -T, --show-tabs Display the ^i -u &nbs character as ap; (ignored) -v, --show-nonprinting use ^ and m- references, except LFD and TAB     --HELP displays this help information and exits --version displays the version information and exits if no file is specified, or the file is "- ", then read from the standard input. Example: cat f - g outputs the contents of the f , then outputs the contents of the standard input, and finally outputs the contents of the g . cat Copy the contents of the standard input to the standard output. Please report cat error to [email protected] gnu coreutils Project home:
There is a difference between Mac and CentOS above cat