batch rename in subdirectories


/ Published in: Bash
Save to your folder(s)

rename all files in subdirectories from .cpp to .c


Copy this code and paste it in your HTML
  1. find . -type f -name '*.cpp' | while read filename; do mv -v "${filename}" "`echo "${filename}" | sed -e 's/\.cpp$/\.c/'`"; done

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.