Skip to content

Instantly share code, notes, and snippets.

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