Renaming File Names That Contains Date

Hi there. I have a lot of files contains date format in their name. I wanted to remove that dates from that files. I wrote this bash script. You can use this script. It works 🙂

Btw, customize it for yourself.

for i in *.md
do
	mv $i $(echo $i | sed -E 's/([0-9]{4}-[0-9]{2}-[0-9]{2}-)//')
done