- grep -f a.txt <(cut -d '.' -f 1 up.txt) > common.txt
- grep -vf <(cut -d '.' -f 1 dw.txt) common.txt
$ grep -f a.txt <(cut -d '.' -f 1 up.txt) > common.txt
$ grep -vf <(cut -d '.' -f 1 dw.txt) common.txt
comparesCompares first word between 2 files and writes to matching word to commoncommon.txt.txt
Compares dw.txtdw.txt with common.txtcommon.txt and print inverted match ie. 'c'.