Replace multiple filename suffixes

Because I cannot remember that syntax of basename

$ for i in *.eml; do mv "$i" $(basename -s .eml "$i").txt; done

That will rename all eml-files into txt-files.

Comments won't work at the moment

I'm sorry but the comments are offline. I'm not sure when I have fixed this issue, but I'll let you know when comments are back online.

Explore more:


↑ back to top