romach
4/11/2017 - 8:51 PM

Pipes

Pipes

# reditect output to file
ls > output.sh
# redirect input from file
sort < file.txt
# redirect input and output
sort < unsorted.txt > sorted.txt
# pipeline
cat unsorted.txt | sort