Newsgroups: comp.unix.shell Date: Tue, 24 Oct 2006 17:48:11 +0200
> Is it possible to diff $variable1 $variable2? > > The content of variable1 and variable2 is the result of a few commands > on the content of files. So rather than putting the output of > processing those files to temporary files just to perform the diff I > figured I'd ask if the above was possible.
$ echo "$var1" pippo pluto
$ echo "$var2" pippo1 pluto
$ diff <(echo "$var1") <(echo "$var2") 1c1 < pippo --- > pippo1
Radoulov, Dimitre