8 examples for mv
# Move multiple files into a directory mv file1.txt file2.txt file3.txt destination_folder/
# Rename a bunch of files all at once: # (this uses bash for and sed commands as helpers..) for fname in *.png ; do mv "$fname" "$(echo "$fname" | sed 's/OldFilenameSubstring/NewFilenameSubstring/')" ; done; # (replace *.png with whatever you want.)
# Rename a file that starts with '-' (avoids "illegal option --" error) mv ./-file.txt file.txt