Use Terminal to select multiple files by filetype and add extension
I need help using Terminal.
I have a Mac (OS Tiger!) where there are many files without extensions (unknown type) EVERY folder has a FINDER.DAT and a folder named RESOURCE.FRK
(I assume old Mac files, maybe OS 9, have been restored from PC formatted drive.)
It's easy to get rid of these files, but the extension-less files are still unknown types in the Finder.
I have learned that I find the filetype and encoding of a single file by typing this in Terminal:
file -I path/filename
But I would like to be able to select all extension-less files of one type (eg. jpg or Word) in one folder (and subfolders) and then add the correct extension to all of them.
Any ideas? :)
Cheers, Simon
MacBook