ONE COMMAND A DAY

24.04.2009

6>cat command

SUMMERY:

This command allows you to look,modify,or combine a file.It can be used to concatenate multiple files together and print result on screen.

SYNTAX:

cat filename[-n] [-b] [-u] [-s]

-n Precede each line output with its line number.
-b Number the lines, as -n, but omit the line numbers from blank lines.
-u The output is not buffered. (The default is buffered output.)
-s cat is silent about non-existent files.

– – help                             displays the help manual.

EXAMPLES:

cat file1.txt file2.txt > file3.txt – Reads file1.txt and file2.txt and combines those files to make file3.txt.

RELATED COMMAND:

tac command

This command concatenates or combines the files in reverse order.

(SOURCE for above tac command: LFY APRIL SUBSCRIPTION)

Advertisements

About yevlempy
A foodie, a cleartripper, a linux geek!

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: