Hi Shlomi This comparing method work fine, you can use sysyem() instead of ` ` , but the output will be the same.
By the way , I'm looking for a new position in scripting area . Thanks Ilan On Tue, Dec 30, 2014 at 1:57 PM, Shlomi Fish <shlo...@shlomifish.org> wrote: > Hi Ilan, > > On Tue, 30 Dec 2014 13:31:45 +0200 > Ilan Shlossman <ilans1...@gmail.com> wrote: > > > comparring 2 files: > > > > `sort $filesToCompre[0] >/dev/null 2>&1`; > > > > `sort $filesToCompre[1] >/dev/null 2>&1`; > > > > > > > > `comm -23 $filesToCompre[0] $filesToCompre[1] > $Diff_File`; > > > > `comm -13 $filesToCompre[0] $filesToCompre[1*] * >>$Diff_File`; > > > > if you're not interested in trapping the output of the commands, please use > system() instead of backticks/``/qx(...) : > > http://perl-begin.org/tutorials/bad-elements/#qx_for_command_execution > > Furthermore, if I understand it, the first sort(1) (see > https://en.wikipedia.org/wiki/Sort_%28Unix%29 ) commands will not do > anything > because it does not modify the file in-place. > > Regards, > > Shlomi Fish > > -- > ----------------------------------------------------------------- > Shlomi Fish http://www.shlomifish.org/ > My Photos - http://www.flickr.com/photos/shlomif/ > > <mst> I find it’s usually safe to assume that whatever shlomif’s doing, > there > isn’t a good reason for it. > > Please reply to list if it's a mailing list post - http://shlom.in/reply . > -- <http://il.linkedin.com/pub/ilan-shlossman/23/18/a97> *Ilan Shlossman+ 972-(0)54-5216764* <http://www.linkedin.com/in/ilanshlossman>