Unix operands: Difference between revisions
From /i/nsurgency W/i/ki
Jump to navigationJump to search
>Lolz m shit will not look good |
>Hitlerlol No edit summary |
||
Line 10: | Line 10: | ||
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 | 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 | ||
[[category: | [[category:Protips]] |
Revision as of 22:44, 3 November 2008
this is a page for unix operands
file 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