batch rename files


/ Published in: Bash
Save to your folder(s)

Manipulate the names of all the files in a folder in bash


Copy this code and paste it in your HTML
  1. for FILE in * ; do NEWFILE=`echo $FILE | sed 's/-//g'` ; mv "$FILE" $NEWFILE ; done

Report this snippet


Comments


You need to login to view comments.