What is Nostr?
dharmik /
npub1yn2…d8c9
2024-11-27 05:53:56

dharmik on Nostr: TIL how to use $(command) to capture the output of one command and use it in another! ...

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.
Author Public Key
npub1yn2nkkmlmvx66lgqs2c3wcajzvj279gwdk4g6rqthxc4pg09g45qf2d8c9