Shell Data Processing - Standard Output Stream (stdout)

About

The Standard Output Stream is the output stream of a command

Operation

Create a file from a Standard Output Stream

To create a file from a standard output stream, you use the redirected

Example:

  • The echo command with the argument Hello World create an output stream that we redirect into the file hello.txt
echo 'Hello World' > hello.txt
  • The cat command will show us the content of the file
cat hello.txt
Hello World

Send the Standard Output Stream as the Input Stream of another command

The Standard Output Stream can become the standard input stream of another command with the pipe redirection operator.

Example:

echo Hello World | tr HW hw 
hello world

Powered by ComboStrap