Skip to content

Instantly share code, notes, and snippets.

@juliangroen
Last active July 4, 2020 23:53
Show Gist options
  • Save juliangroen/eeae94bf4926ca6f6e5f1356062173b8 to your computer and use it in GitHub Desktop.
Save juliangroen/eeae94bf4926ca6f6e5f1356062173b8 to your computer and use it in GitHub Desktop.
ftStart=".avi"
ftEnd=".mp4"
for file in $(find . -name '*.sm'); do
echo changing ${ftStart} to ${ftEnd} in ${file}
sed -i "s/${ftStart}/${ftEnd}/g" ${file}
done
@juliangroen
Copy link
Author

chmod +x patrix.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment