How to get random number in fish shell: Difference between revisions

From razwiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
random
random
To generate a directory for the day's date with a random id:<syntaxhighlight>
To generate a directory for the day's date with a random id:
<pre>
$ echo (date +%Y-%m-%d)-(random)
$ echo (date +%Y-%m-%d)-(random)
2021-12-20-5476
2021-12-20-5476


</pre>
</syntaxhighlight>

Latest revision as of 16:01, 20 December 2021

random

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

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