Write STDERR To A File Instead Of A Terminal
- The command works in some shells (e.g. bash and zsh) but not others (e.g. sh and ksh). If it doesn't work, try :
command > output.txt 2 > &1
(There can't be a space between the [TODO: Code shorthand span ] and [TODO: Code shorthand span ] characters)
- Sending STDOUT to one file and STDERR to another is done with :
command > output.txt 2 > error.txt
Footnotes And References
- •