examinedliving
10/30/2014 - 3:59 AM

Recursively strip extension of file - specific case - general use

Recursively strip extension of file - specific case - general use

ext="*.htcd.bk"
find . -name $ext -type f  | while read NAME ; do mv "${NAME}" "${NAME%.bk}" ; done