Unix operands: Difference between revisions
No edit summary |
No edit summary |
(No difference)
|
Revision as of 07:09, 28 February 2009
this is a page for unix operands
input/output operands
>
write program output to a file, is used as follows: (newline & quote) echo hello world > helloworld (end quote and newline) this writes anything that the command "echo hello world" says into the file "helloworld." Will overwrite the contents of helloworld if the file already exists.
>>
Appends all output to a file, is used as follows: (newline and quote) echo hello world >> helloworld (end quote and newline) this appends any data output from the command "echo hello world" into the file "helloworld." All information will be placed at the end of the file and no information from "helloworld" will be overwritten
<
Fills the input stream of a program with the content of a file
|
Writes the output stream of a program to the input stream of another program Using this operator (usually called 'pipe') you can build a chain of over9000 programs using the output of the previous program as input.