Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
dharmik (dharmik@linuxusers.in)'s status on Thursday, 28-Nov-2024 16:16:56 JST dharmik
TIL how to use $(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.