Chained Pipelines
The redirection and piping tokens can be chained together to create complex commands. For example:
ls | grep '\.sh' | sort > shlistlists 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:
“Good and evil are so close as to be chained together in the soul. Now suppose we could break that chain, separate those two selves. Free the good in man and let it go on to its higher destiny.”
—John Lee Mahin (19021984)