Wednesday, October 18, 2006

"cat" command

I finally now understand the cat command. It links files together or "concatenates" them. Sometimes a dictionary can be really useful for something. :)

1 comment:

Tom said...

On Linux this command prints stuff to the screen. I guess if you wanted to concatenate two files, you'd specify both files as arguments. This command is very useful for searching in a text file when combined with grep.
For example, you could do something like this:

cat textfile | grep searchterm

and that would display the line containing the search term...