- I want to create 12 directories named after the months. So I tried using
locale
to get the month names, piping totr
to separate them with commas, then put braces around and passed tomkdir
. But the whole is treated as one string. Is there a way to avoid this?
16:07: temp ⧲ mkdir {$(locale mon | tr \; ,)}
16:18: temp ⧲ ls -lh
total 4.0K
drwxr-xr-x. 2 john john 4.0K Dec 11 16:18 {January,February,March,April,May,June,July,August,September,October,November,December}
16:18: temp ⧲