Friday, August 16, 2019

[TERMIINAL] - Change character on filename to another one


Replace one character with another one on all files inside folder

for x in *"_"*; do mv -- "$x" "${x/_/-}"; done

On this example i need to change all _ to -


You can change the character to find on filename (orange color) and the replace character (red color) 

No comments :

Post a Comment