Automate files with no extension to .txt
I need to convert specific files named GYART01 GYART02 GYART03 GYART04 GYART05 etc to GYART01.txt GYART02.txt GYART03.txt GYART04.txt GYART05.txt.
There are other files in all directories that also do not have extensions. So I want to specifically convert all these GYART files to .txt files.
How do I go about this? Any help would be greatly appreciated.
Go to the directory:
cd <path>
Rename files:
find . -type f -name 'GYART*' -exec mv '{}' '{}'.txt \;