I have the same problem as was asked in question Rename Music Files with Missing File Extensions and I found the script provided by @Gilles very educational, but unfortunately it didn't work the way I expected. What I was looking for was a script that would add a file extension to all music files without extension in all subdirectories, at all levels, below "/path/to/music/directory/". The suggested command line parameter
makes the script go through all the files in the subdirectories one level below "/path/to/music/directory/" but not at levels below that. What command line parameter should I use to traverse all files at all levels below "directory/" ?
Would also appreciate a pointer to documentation for the
BTW, For those interested in the original answer. I found that the script works better after I changed the line
file -i "$@" |
file --mime-type "$@" |
(If I had had the privilege level I would have given this as a comment in the original answer)