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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -