Cat: Difference between revisions
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
== Vaata veel == | == Vaata veel == | ||
dog, an enhanced replacement for cat | dog, an enhanced replacement for cat | ||
Coreutils | Coreutils | ||
List of Unix utilities | List of Unix utilities | ||
split, a command that splits a file into pieces which cat can then rejoin. | split, a command that splits a file into pieces which cat can then rejoin. | ||
zcat | zcat | ||
paste (Unix) | paste (Unix) | ||
Revision as of 10:24, 18 April 2011
Sissejuhatus
SEE ARTIKKEL ON POOLELI
Autor
Urmo Laaneots A21 aasta 2011
CAT'i spetsifikatsioon
The Single Unix Specification specifies the behavior that the contents of each of the files given in sequence as arguments will be written to the standard output in the same sequence, and mandates one option, -u, where each byte is printed as it is read. If the filename is specified as -, then cat will read from standard input at that point in the sequence. If no files are specified, cat will read from standard input entered.
Extensions
Both the BSD versions of cat (as per the OpenBSD manpage) and the GNU coreutils version of cat specify the following options:
-b (GNU only: --number-nonblank), number non-blank output lines
-n (GNU only: --number), number all output lines
-s (GNU only: --squeeze-blank), squeeze multiple adjacent blank lines
-v (GNU only: --show-nonprinting), displays nonprinting characters as if they were visible, except for tabs and the end of line character
-t on BSD, -T on GNU, implies -v but also display tabs as ^I
-e on BSD, -E on GNU, implies -v but also display end-of-line characters as $
Vaata veel
dog, an enhanced replacement for cat
Coreutils
List of Unix utilities
split, a command that splits a file into pieces which cat can then rejoin.
zcat
paste (Unix)