Basic Linux Commands II - linux redirection and pipe
######linux redirection and pipe######
features :
ability to control IO/Output
input redirection "<"
a. cat <>output redirect ">"
a. cat 123.txt > abc.txt populate from info of input
append redirection ">>"
a. cat 123.txt >> aaa.txt append if exist if not create new aaa.txt
## pipes '|' ##
Features : connect the output stream of one command to input of subsequent command
a. cat 123.txt | sort
b. cat 456.txt 123.txt | sort
c. cat 456.txt 123.txt | sort | grep 4
features :
ability to control IO/Output
input redirection "<"
a. cat <>output redirect ">"
a. cat 123.txt > abc.txt populate from info of input
append redirection ">>"
a. cat 123.txt >> aaa.txt append if exist if not create new aaa.txt
## pipes '|' ##
Features : connect the output stream of one command to input of subsequent command
a. cat 123.txt | sort
b. cat 456.txt 123.txt | sort
c. cat 456.txt 123.txt | sort | grep 4
Comments
Post a Comment