October, 2019
Recently I’ve built a script to download all my articles from dev.to into markdown files.
I used the timestamp and the name of the article.
This is working, but there is one annoying thing: every post has a date in its file name and its frontmatter.
That leads to:
# loop over every file with `md` extension, assign it to `file`
for file in *.md
do
# rename (by variable expansion starting from position 11)
mv "$file" "${file:11}"
done
Hi! I'm Michael 👋 I'm a Mentor & Educator & Senior Web Developer - I help you to reach your (career) goals.