Pipelines
Redirection
Redirection will write the output of a command to a file.
Redirect Stdout
command > stderr
Redirect Stderr
command ^> stderr
Redirect Both
command &> combined
Multiple Redirection
command > stdout ^> stderr &> combined
Concatenating Redirect
Instead of truncating and writing a new file with >
, the file can be appended to with >>
.
command > stdout
command >> stdout
Pipe
Pipe Stdout
command | command
Pipe Stderr
command ^| command
Pipe Both
command &| command
Combined
command | command > stdout