/ Published in: Bash
Manipulate the names of all the files in a folder in bash
Expand |
Embed | Plain Text
for FILE in * ; do NEWFILE=`echo $FILE | sed 's/-//g'` ; mv "$FILE" $NEWFILE ; done
Comments
Subscribe to comments
You need to login to post a comment.

replace mv with echo to trial a new rename method
replace mv with echo to trial a new rename method