/ Published in: Bash
rename all files in subdirectories from .cpp to .c
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
find . -type f -name '*.cpp' | while read filename; do mv -v "${filename}" "`echo "${filename}" | sed -e 's/\.cpp$/\.c/'`"; done