dharmik
@dharmik@linuxusers.in
$(command)
to capture the output of one command and use it in another!you can get the date as folder name (in format month abbreviate-date-year) with
mkdir "$(date +"%b%d%Y")"
- $(...) is used to execute the date command and substitute its output.
@dharmik
In the spirit of sharing
CL-USER>
(ensure-directories-exist
(format nil "~[mon~;tue~;wed~;thu~;fri~;sat~;sun~]/"
(nth-value 6 (get-decoded-time))))
"thu/"
T
CL-USER> (probe-file #p"thu/")
#P"/home/screwtape/thu/"
tl;dr a lisp form to create an abbreviated current-day-of-the-week-shortname directory by decoding the current universal-time.