Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 14808  / 2 Years ago, sat, february 5, 2022, 4:14:43

Following this question I exported various SVGs to PNGs, but there is a little problem, all files include in their name the extensions .svg and .png as in file.svg.png.



Now what I'd like to know is how can I remove the .svg string from the name of the file without going trough each file and do right-click>rename?.


More From » files

 Answers
6

pyrenamer is a pretty handy tool for batch renaming files. Otherwise, you could always fire up the terminal.



for file in *; do mv "${file}" "${file//.svg/}"; done


That should do the trick if you're in the same directory as the pictures. Use at own risk.


[#34560] Saturday, February 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aslity

Total Points: 336
Total Questions: 133
Total Answers: 98

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
;