Исправление superuser, 07.08.17 17:11 (текущая версия) :
grep -v "\.$" filename
Исходная версия superuser, 07.08.17 17:09:
grep -v -e "\.$" filename