I'm trying to do this on the mac terminal
I want to strip all the fields after the first dot on a filename but keep the extension at the end, and there can be an arbitrary length of dots.
Input:
file1.some.stuff.mp3 file2.other.stuff.stuff.mp3 file3.some.thing.mp3 file4.one.two.three.four.mp3
Expected output:
file1.mp3 file2.mp3 file3.mp3 file4.mp3
I have all the files on the same folder.