Ali GOREN

Open Source, JavaScript, Python, .NET

Renaming File Names That Contains Date

| Permalink

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