Shell Data Processing - Standard Output Stream (stdout)

Card Puncher Data Processing

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





Discover More
Card Puncher Data Processing
Ansible - Shell

This article shows how to execute a command via a shell with ansible and the ansible shell module use the stdout conditionaly
Card Puncher Data Processing
Shell Data Processing - Cat command (short for concatenate)

cat generates a stream of data from one or more files It therefore concatenate files. Output file1.txt then file2.txt contents and redirect and create the file fileAll.txt Content of fileAll.txt...
Card Puncher Data Processing
Shell Data Processing - Command

command in a shell may have one of the following functions in a pipeline. a start command to create a input stream from a file from an terminal input or text a filter command to process a input...
Card Puncher Data Processing
Shell Data Processing - Echo

Echo is a command that accepts an argument as standard input, and echoes it back to the terminal as standard output.
Card Puncher Data Processing
Shell Data Processing - Filter (Stream Operator)

This page is pipeline operator in a shell language. They are known as filter in a shell language. It is a computer program or shell command (subroutine) that: read from standard input (stream)...
Card Puncher Data Processing
Shell Data Processing - Pipe ( command to command redirection)

“” The pipe is a redirection operator held to transmit the stream output (stdout or sterr) of a command to another as stream input. One or more pipe operators followed by command forms a pipeline....
Card Puncher Data Processing
Shell Data Processing - Pipeline

A pipeline is a succession of command separated by a pipe operator. -- Malcolm Douglas McIlroy - Inventor of pipes and other wonders. The format for a pipeline is...
Card Puncher Data Processing
Shell Data Processing - Sed (Stream editor)

sed stands for stream editor. It is a filter program used for filtering and transforming text It: takes as input a standard stream input modifies it based on an expression, and returns it as...
Card Puncher Data Processing
Shell Data Processing - Stream

This page is the creation of Stream in the Shell context. You start a stream with an initialization function that creates a standard output such as: grep ... You connect then: the first...
Card Puncher Data Processing
What are Shell Redirections? of Standard Streams

Before a command is executed, its input (standard input stream) and output (standard output stream and standard error stream) may be redirected using redirection operators by the command line interpreter....



Share this page:
Follow us:
Task Runner