Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Dealing with diff command within perlby surajsam (Initiate) |
on Nov 25, 2011 at 23:57 UTC ( [id://940143]=perlquestion: print w/replies, xml ) | Need Help?? |
surajsam has asked for the wisdom of the Perl Monks concerning the following question: This could be more of unix question too. Since I am dealing with 'diff' within a perl script, thought of asking here.
isect array contains common elements of two other arrays (directories). when I do a diff between two directories for all the elements of isect, I want to ignore the identical elements (files). I want the diff to report only those files that differ. for example one sample output would look like, as follows -
In the above example, I don't want "diffing file 3" to be printed, since 'file 3' is an identical file between two arrays. I want to ignore files with no diff. I was looking for a switch for the diff command and did not find any. BTW, I don't have Diff.pm in my environment and that possibility is ruled out. Appreciate any help
Back to
Seekers of Perl Wisdom
|
|