grep . <file> | grep -v '/' grep . <file> | grep '/.*/' cut -d '/' -f 2 <file> | sort | uniq > TMP diff TMP $MF/training-tagger/LEGAL-TAGS | grep '<'