linux - Doesn't work diff command (arguments troubles) -
trying diff typing next:
$ diff -c $(rpm -qpr prev/p.src.rpm 2>/dev/null) $(rpm -qpr curr/p.src.rpm 2>/dev/null) diff: operand `<=' diff: try `diff --help' more information.
how can change arguments normal script working?
can try executing script way:
$ diff -c <(rpm -qpr prev/p.src.rpm 2>/dev/null) <(rpm -qpr curr/p.src.rpm 2>/dev/null)
this should substitute command between "<()" process. create named pipe , given diff file compare. allowing execute above directly in script.
Comments
Post a Comment