GNU/Linux Command – CAT

cat — CATenate files and display
 
Summary:

Cat will do following functions on the files: Displaying them, Combining copies of them and Creating new ones.
 
Jargon File: Catenate is an obscure word meaning “to connect in a series”, which is what the “cat” command does to one or more files.
 
Examples:
$ cat File -- Dump the file on screen.  $ cat File1 File2 File3 -- Concat File1,File2 & File3 and display.  $ cat > File -- Concat the STDIN to STDOUT and FILE. Press Enter and Ctrl+D to exit.  $ cat - File - Concat STDIN and File to STDOUT.  $ cat -n File -- Show the File with number for each line.  $ cat -b File -- Show the File with number for non-blank lines.  $ cat -s File -- Squeeze multiple blank lines to single.  $ cat -A File -- Show the Non-Printable Chars also.  STDIN - Standard Input - Keyboard STDOUT - Standard Output - Screen
Read: man cat / info cat

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: