Linux find and rename filename command

find . -type f -name '@MOD=' | while read FILE ; 
do
    newfile="$(echo ${FILE} |sed -e 's/(@MOD=.*)//')"
    mv "${FILE}" "${newfile}" ;
done

  •  
  •  
  •  
  •  

Viet Luu has written 276 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.