Shell Data Processing - Standard Output Stream (stdout)


The Standard Output Stream is the output stream of a command


Create a file from a Standard Output Stream

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


  • 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.


echo Hello World | tr HW hw 
hello world

Powered by ComboStrap