bash - Linux - Grep and process substitution -
i trying understand difference between commands below. have same file on 2 machines (server1 , server2), below:
$ ls file1.txt $ ssh server2 'ls /tmp/leo/' file1.txt
the command below works expected:
$ ls /tmp/leo/ | grep -f <(ls /tmp/leo/) file1.txt
but if put ssh on process substitution command, don't work:
$ ls /tmp/leo/ | grep -f <(ssh l1558s 'ls /tmp/leo/')
so difference using ssh?
regards, leo
run ssh
-n
switch doesn't await input on standard input.
Comments
Post a Comment