# Basic syntax:
rename filename_search_pattern replacement_text file_search
# Where:
# - The filename_search_pattern will be replaced with replacement_text in every
# file found using the file_search pattern
# Example usage:
# Given two files named:
this_is_an_example_filename.txt
example_filename_this_is.txt # Yoda phrasing
rename example_filename other_filename *.txt # Changes filenames to:
this_is_an_other_filename.txt
other_filename_this_is.txt
$ mmv '*abc*' '#1xyz#2'
sudo apt install -y mmv
mmv original_name* new_name#1
## OLD NAMES: original_name1 original_name2 original_name3
## NEW NAMES: new_name1 new_name2 new_name3
find . -type f -name 'Lucky-*' | while read FILE ; do
newfile="$(echo ${FILE} |sed -e 's/#U00a9/safe/')" ;
mv "${FILE}" "${newfile}" ;
done