[glug-t] One Day One GNU/Linux Command (CAT)

One Day One GNU/Linux Command
=============================

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

HTH :)
-- 
Bharathi S

---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: