/ Published in: Bash
Manipulate the names of all the files in a folder in bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
for FILE in * ; do NEWFILE=`echo $FILE | sed 's/-//g'` ; mv "$FILE" $NEWFILE ; done