Skip to content
Snippets Groups Projects
intersect.sh 192 B
Newer Older
thdurand4's avatar
thdurand4 committed
#!/bin/sh

intersect() {
    for file in "$@"; do
        sort -u "$file"
    done | sort | uniq -cd | grep "^[^0-9]*$# " | sed -e "s/      [0-9]//" | sed -e "s/ //"
}


intersect $1 $2 $3 $4