in reply to find common lines in many files
I would make it with a bit of bash pipelining:
- sort for sorting file by fileRegards,files=(MYFILES/*.txt) for f in ${files[*]} do sort -u $f ; done | sort | uniq -c | perl -ne 'if (/[[:space:]]+'"$((${#files}+1)) "'(.*)/) {print $1."\n"; +}'
|
|---|