I’m a heavy user of command line interface and often named files without extension. This behavior forces me to use file utility every time I have doubts.
$ file stick-note1
stick-note1: ASCII text
When organizing my home/ I came across with many files like that, so I decided make this script to walk throughout files and check if it’s text file without extension and put .txt after.
$ python names.py
This only change the file on current directory and it’s a “works for me” approach. Adapt to your needs.