:Home:   :Tools:   :Projects:   :Documents:   :Downloads:   :Hosting:   :About:
Shell redirection


Send stdout to file

> file

Send stderr to file

2> file

Send both to file

> file 2>&1

Append stdout to file

>> file

Append stderr to file

2>> file

Append both to file

>> file 2>&1

Pipe stdout to P2

| prog2

Pipe both to P2

2>&1 | P2

Take stdin from file

< file

Read stdin from kbd until c

<< c