Tagged Questions
3
votes
2answers
476 views
How do I use tee to redirect to grep
I don't have much experience of using tee, so I hope this is not very basic.
After viewing one of the answers to this question I came across a strange beheviour with tee.
In order for me to output ...
1
vote
1answer
137 views
password problem when feeding a remote file into diff
When I want to compare a local file with a remote file, any of these usually works:
$ ssh remote cat file | diff file -
$ diff file <(ssh remote cat file)
However, sometimes (especially when the ...
4
votes
1answer
219 views
Pipes vs process substitution
While trying the cat "$@" trick to read from either standard input or given files, it turned out that pipe and process substitution handle a missing trailing newline differently:
printf %s foo > ...
14
votes
4answers
1k views
Process substitution and pipe
I was wondering how to understand the following:
Piping the stdout of a command into the stdin of another is a powerful
technique. But, what if you need to pipe the stdout of multiple
...