if there is at least two files have common lines hope to show like this example,
perl a.pl ./*.txt
common line1 - a.txt b.txt
common line2 - a.txt c.txt d.txt
i searched this script, but this script only search words, not common lines
perl theScript.pl ?.dat
#! perl -nl
push @{ $h{ $_ } }, $ARGV
}{
print qq[$_ id in @{$h{ $_ }}] for keys %h;
برچسب:
نویسنده: استخدام کار