Merge pull request #276 from aneasystone/redirection
The easy way to redirect both standard output and standard error
This commit is contained in:
@ -128,7 +128,7 @@ Notes:
|
|||||||
|
|
||||||
- Know about "here documents" in Bash, as in `cat <<EOF ...`.
|
- Know about "here documents" in Bash, as in `cat <<EOF ...`.
|
||||||
|
|
||||||
- In Bash, redirect both standard output and standard error via: `some-command >logfile 2>&1`. Often, to ensure a command does not leave an open file handle to standard input, tying it to the terminal you are in, it is also good practice to add `</dev/null`.
|
- In Bash, redirect both standard output and standard error via: `some-command >logfile 2>&1` or `some-command &>logfile`. Often, to ensure a command does not leave an open file handle to standard input, tying it to the terminal you are in, it is also good practice to add `</dev/null`.
|
||||||
|
|
||||||
- Use `man ascii` for a good ASCII table, with hex and decimal values. For general encoding info, `man unicode`, `man utf-8`, and `man latin1` are helpful.
|
- Use `man ascii` for a good ASCII table, with hex and decimal values. For general encoding info, `man unicode`, `man utf-8`, and `man latin1` are helpful.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user