bash




To change files name recursively you can combine the commands find and rename, as in these ways: To add suffix (e.g. ‘_mysuffix’) find . -name “*.jpg” -exec rename -v ‘s/\.jpg$/\_mysuffix.jpg/i’ {} \; To remove suffix find . -name “*.jpg” -exec rename -v ‘s/\_mysuffix.jpg$/\.jpg/i’ {} \; To add prefix (e.g. ‘myprefix_’) find […]

Recursively files renaming on Linux cli