diff options
Diffstat (limited to 'Input redirection.md')
-rw-r--r-- | Input redirection.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Input redirection.md b/Input redirection.md new file mode 100644 index 0000000..22055e2 --- /dev/null +++ b/Input redirection.md @@ -0,0 +1,4 @@ +`> file.txt` : stdout to file +`2> file.txt`: stderr to file +`2>&1 > file.txt`: stderr to stdout then to file +`&> file.txt`: stderr and stdout to file
\ No newline at end of file |