Skip to content

Instantly share code, notes, and snippets.

@chutaicho
Created June 17, 2014 03:49
Show Gist options
  • Save chutaicho/74be0ab2de55c23b3c93 to your computer and use it in GitHub Desktop.
Save chutaicho/74be0ab2de55c23b3c93 to your computer and use it in GitHub Desktop.
Bash rename extension recursive: .cpp to .mm
#!/bin/bash
for i in `find . -name "*.cpp"`
do
mv $i ${i%.cpp}.mm
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment