Standard Error SymbolsThe standard error of UNIX commands is also easily redirected, but the symbols that are used to perform the redirection is dependent on the shell that is used. The following symbols are used to redirect the standard error from UNIX commands, depending on the shell that a user is using:
Table 3-3: Bourne Shell and Korn Shell Standard Error Redirection Symbols. Redirection Symbol Physical Device 2> Send the "standard error" character stream that results from a command to another location. The default is for the standard error to be displayed on your computer monitor. If the new location is a filename, create the file. 2>> Same as above, but if the new location is a file, append the information to the end of that file.
Table 3-4: C Shell Standard Error Redirection Symbols. Redirection Symbol Physical Device >& Send the "standard error" character stream that results from a command to another location. The default is for the standard error to be displayed on your computer monitor. If the new location is a filename, create the file. >>& Same as above, but if the new location is a file, append the information to the end of that file.
Next: Redirecting the standard error Up: Combining UNIX Commands Previous: Example 3-3: Redirection Examples.   Contents |