Created
January 27, 2022 21:43
-
-
Save luckylittle/3eb92f4796ebaa0efd756dc103165122 to your computer and use it in GitHub Desktop.
Example of the command that is useful for processes that change file extension and also have spaces in the filename
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . type f -name '*.original_extension' -execdir /bin/zsh -c '/usr/bin/echo $0 ${0/original_extension/new_extension}' {} \; | |
###################################################################### | |
## Before: ./01-Part 1.original_extension ## | |
## After: ./01-Part 1.original_extension ./01-Part 1.new_extension ## | |
###################################################################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment