Originally posted by veeruk101
Thanks for the replies.
mschutte, so for the second case would you say it's passing the stdout of the program on the left to the STDIN of the program on the right?
Exactly. As mschutte pointed out, this is known as "piping".
Also sometimes you will see something like:
# echo 'hello' >> /home/user/somefile.txt
Two >'s signify an append to the text file. If you use one > it will delete existing information in the file.