Follow

Service-Toot: It's that time of the year again where I create fresh YYYY-MM folder structures in all of my document folders. It's any easy shell oneliner:

for month in 2022-{01..12}; do mkdir -p $month; done

· · Web · 1 · 1 · 4

@bascht Nice! I knew you could enumerate values between curly braces but I wasn't aware of the sequence syntax.
This should also do the job, I think:
mkdir 2022-{01..12}

Sign in to participate in the conversation
The olde Yakshed

This is a special little place in the Fediverse for a small group of purveyors of finest yak wool.