>>Single Point of Failure >>

§ Home § CV § Blog Photography Divagações §

Calendar

June 2010
M T W T F S S
« May   Aug »
 123456
78910111213
14151617181920
21222324252627
282930  


Popular Tags


Recent Entries



Categories


Archives

Redirecting your intents

Ξ June 27th, 2010 | → 0 Comments |
Tools |, , |

command > filename

redirects the stdout from ‘command’ to a file called ‘filename’. The file shall be created if not present, or otherwise overwritten.

> filename
: > filename

are a special case of redirection, creating a zero-lenght file. The ‘:’ is a dummy placeholder that generates no content - usually used when the first form is not allowed by the shell.

command >> filename

also redirects the stdout to file, but the content is appended to file in the file already exists.

note: pre-pending 1, 2 or & will redirect stdout, stderr or both , according to the redirection ‘operator’ (>, >>).

 


On the nightstand...



Entries | Comments