I have a directory full of randomly named files of different types, all with no file extensions. Most are images, with some videos, and some plaintext. I've used one of the Windows versions of file to confirm the files can all be identified by their headers/metadata, but would like to automate the naming as there are roughly 2400 files.
I don't care so much about the filename as much as just having the appropriate extension for it's type. Is anyone aware of a program or script that can do this?