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

RSS Icon Subscribe to comments

You need to login to post a comment.