find common lines between multiple files
Since the files are already sorted:
comm -12 a b |
comm -12 - c |
comm -12 - d
cat a b c d |sort |uniq -c |sed -n -e 's/^ *4 \(.*\)/\1/p'
Since the files are already sorted:
comm -12 a b |
comm -12 - c |
comm -12 - d
cat a b c d |sort |uniq -c |sed -n -e 's/^ *4 \(.*\)/\1/p'