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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -