rename file linux terminal code example
Example 1: bash rename file
mv oldname newname
Example 2: rename a file in linux
mv oldfile.txt newfile.txt
Example 3: unix rename file
mv thirdfile file3
Example 4: rename file linux
mv (option) filename1.ext filename2.ext
Example 5: linux find and rename files with text
find . -type f -name 'Lucky-*' | while read FILE ; do
newfile="$(echo ${FILE} |sed -e 's/\\#U00a9/safe/')" ;
mv "${FILE}" "${newfile}" ;
done