![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Confusion In run level... | udayn | SUN Solaris | 1 | 02-16-2008 08:07 AM |
| 'tr' confusion | Nafanja | UNIX for Dummies Questions & Answers | 2 | 12-05-2007 07:47 PM |
| Sed confusion | alfredo123 | Shell Programming and Scripting | 3 | 11-17-2006 08:16 AM |
| ftp confusion | intern | UNIX for Dummies Questions & Answers | 1 | 06-08-2006 03:20 PM |
| ISO Confusion? | Mr_Pinky | UNIX for Dummies Questions & Answers | 6 | 09-19-2005 03:14 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Confusion about 1>&2 and 2>&1
Can anybody tell me the difference between 1>&2 and 2>&1?
|
| Forum Sponsor | ||
|
|
|
|||
|
1 is stdout 2 is stderr
By default stdout is the "normal" stream for program out, stderr is for errors and warnings only. Both of those statments combine stdout and stderr into one stream - the first places all stderr and stdout output on 2, the second places all output on 1 |
|||
| Google UNIX.COM |