$ diff <(echo "$a") <(echo "$b")
You got some results in two variables within your shell script and would like to find the differences? Changes in process lists, reworked file contents, ... . No need to write to temporary files. You can use all the diff parameters you'll need. Maybe anything like $ grep "^>"
is helpful afterwards.
by David Winterbottom (codeinthehole.com)
0sem comentários ainda