I want to change these filenamesdownload (19).download...download (27).downloadto download (19).html...download (27).htmlI run unsuccessfullymv *.download *.htmlusage: mv [-f | -i | -n] [-v] source target       mv [-f | -i | -n] [-v] source ... directoryHow can you change the filename?I think I need a regex here probably.
Mass mv on files and changing filenames
bash;osx;rename
You can only use mv to move multiple files to a single directory in on call. One option here is to use prename (rename is linked to this on most systems, but not all):prename -n 's/download$/html/' -- *.downloadRemove -n when you are sure this is doing what you want. Another way is simply to use a loop:for file in *.download; do  mv -i -- $file ${file%download}htmldoneThe -i option is added mv to prompt if any files will be overwritten. Remove this if you are sure that you will not overwrite any files you need.