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:

    Proverbs, like the sacred books of each nation, are the sanctuary of the intuitions. That which the droning world, chained to appearances, will not allow the realist to say in his own words, it will suffer him to say in proverbs without contradiction.
    Ralph Waldo Emerson (1803–1882)