In order to rename music samples with .wav and .flac extensions I use this line:
for f in * ; do rename 's/[^a-zA-Z0-9:0:4]//g' "$f" ;done
But what happen is, when the name of the file is like this:
name * of ( the f?ile.wav
it becomes:
nameofthefilewav
it shold be:
nameofthefile.wav
What do I need to get the extension dot on his place?