Shell Data Processing - Standard Input Stream (Stdin)

Card Puncher Data Processing

About

IO - Standard Input (stdin) in a shell

Management

Creation

Cat From a file

cat will start a standard input session

cat

You can redirect it to a file.

cat > myinput.txt

Echo from literal

If your command needs plain input without terminal emulation you can use input redirection with a pipe like:

echo "some input" | command

Stop

Ctrl+D typed at the start of a line on a terminal, signifies the end of the file (input).

Example:

cat -

Type what you want then Ctrl+D





Discover More
Card Puncher Data Processing
Shell Data Processing - Cat command (short for concatenate)

cat is a core utility that generates a stream of data from one or more files (ie file descriptor) It therefore can: concatenate files. read any file (or file descriptor ie tcp connection, ...) ...
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 - 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 one or more command, and returns...



Share this page:
Follow us:
Task Runner