How can I create directories named as days of the week (i.e Monday, Tuesday, .... Saturday) inside a directory like /tmp/ in one command only?Like combination of mkdir with date +%A or any other.mkdir -p /tmp/$(date +%A)  --->  /tmp/TuesdayShould be as below after command executes. /tmp/Monday/tmp/Tuesday.../tmp/SaturdayI want this in a single command, not a script.
One liner mkdir with directory naming as days?
date;mkdir
You can use the following 'command' to get the desired result:for i in {1..7}; do mkdir /tmp/$(date +%A --date $i days ago); done