When I want to rename a limited number of files (~ 20) in a certain way, I sometimes do this: # Get list of certain files, and construct a script with mv ls *SOMETHING* | awk '{print "mv ", $1, $1}' > x # I then edit the file x to change what I want # Then execute it sh x