E-Mail:
Get our new Windows 7 eBook (PDF) for $7 with 70+ Tips. Download Now!

What does “cat -” do?

  • No Related Post

Hello I would like to know the what exactly does cat - mean in Unix? I was recently reading through an article that mentioned this command and couldn’t understand what it did.

“cat” is the ‘concatenate’ program and its purpose is to display the contents of one or more file. Add the ‘-’ flag, however, and you have it display the content of “standard input” or “stdin”: in a pipe like:

tail myfile | cat -

It’s basically a null operation, since this is no different than doing…

One Comment

nice post……….I really appreciate that. If you are working on link exchange, how about we can exchange with each other.

What Do You Think?

 
35 queries / 0.362 seconds.