what is the method to find common lines in subset of multiple files in ubuntu

خرید بک لینک

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;

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 287 تاريخ: يکشنبه 10 مرداد 1395 ساعت: 11:19

صفحه بندی