Tubo | Redirecionamento <> Precedência
Eu quero deixar claro quando faz um tubo | ou redirecionamento <> tem precedência em um comando?
Este é o meu pensamento, mas precisa de confirmação, é assim que funciona.
Exemplo 1:
sort < names | head
The pipe runs first: names|head then it sorts what is returned from names|head
Exemplo 2:
ls | sort > out.txt
This one seems straight forward by testing, ls|sort then redirects to out.txt
Exemplo 3:
Fill in the blank? Can you have both a < and a > with a | ???