Watch + Pipe + mehrere Argumente

689
Kirill

Ich habe einen Befehl diff -y <(xxd FILE) <(xxd FILE_) | colordiffund möchte ihn in die watchRoutine bringen. Sowas in der Art:

watch -n 0,1 'diff -y <(xxd FILE) <(xxd FILE_)' 

Aber ich habe einen Fehler:

sh: 1: Syntax error: "(" unexpected 
0

1 Antwort auf die Frage

1
Ipor Sircer

Wenn Sie Bash-Syntax verwenden, führen Sie es mit Bash aus:

$ watch -n 0,1 'bash -c "diff -y <(xxd FILE) <(xxd FILE_)"'