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:

    who chained themselves to subways for the endless ride from Battery
    to holy Bronx on benzedrine until the noise of wheels and children
    brought them down shuddering mouth-wracked and battered bleak of brain and drained of brilliance in the drear light of Zoo,
    Allen Ginsberg (b. 1926)