Redirection (computing) - Chained Pipelines

Chained Pipelines

The redirection and piping tokens can be chained together to create complex commands. For example:

ls | grep '\.sh' | sort > shlist

lists the contents of the current directory, where this output is filtered to only contain lines which contain .sh, sort this resultant output lexicographically, and place the final output in shlist. This type of construction is used very commonly in shell scripts and batch files.

Read more about this topic:  Redirection (computing)

Famous quotes containing the word chained:

    With a tongue like a razor he will kiss,
    the mother, the child,
    and we three will color the stars black
    in memory of his mother
    who kept him chained to the food tree
    or turned him on and off like a water faucet....
    Anne Sexton (1928–1974)