A blog about the joy, concepts, and precepts of computing through the operating system Unix (or any of its variants.)
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. :)
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...
Please, if you have any ideas or questions about different things in the posts, please comment. This blog is here for the sharing and spread of knowledge and ideas.
1 comment:
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...
Post a Comment