How to get random number in fish shell

From razwiki
Revision as of 16:01, 20 December 2021 by Razzi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
random

To generate a directory for the day's date with a random id:

$ echo (date +%Y-%m-%d)-(random)
2021-12-20-5476