Personal tools

I/O redirection

From MohidWiki

Revision as of 18:16, 21 May 2007 by 192.168.20.177 (talk) (Examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

0 - stdin 1 - stdout 2 - stderr

Syntax

> command < input-file > output-file
> command i>&j

Examples

> make > makelog.log 2>&1

Redirects all make output to makelog.log file as stderr is redirected to stdout.

External References