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 . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/