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.


# renamer.sh
# author: Ali GOREN <[email protected]>
# website: https://aligoren.com

# description: Your files should be like that; 2020-10-08-example.md

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