This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
fuss:jot [2013/10/19 05:25] – created office | fuss:jot [2022/04/19 08:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Generating MAC Addresses ====== | ||
+ | |||
+ | <code bash> | ||
+ | printf " | ||
+ | </ | ||
+ | |||
+ | ====== Print Sequences of Numbers ====== | ||
+ | |||
+ | Input: | ||
+ | <code bash> | ||
+ | jot - 1000 10000 1000 | ||
+ | </ | ||
+ | |||
+ | Output: | ||
+ | < | ||
+ | 1000 | ||
+ | 2000 | ||
+ | 3000 | ||
+ | 4000 | ||
+ | 5000 | ||
+ | 6000 | ||
+ | 7000 | ||
+ | 8000 | ||
+ | 9000 | ||
+ | 10000 | ||
+ | |||
+ | </ | ||
+ | |||
+ | ====== Generate Unique Equal-Length Random Numbers ======= | ||
+ | |||
+ | To generate 1000 unique random numbers, issue: | ||
+ | <code bash> | ||
+ | jot -r 1000 0 65535 | uniq | xargs printf " | ||
+ | </ | ||
+ | |||
+ | where the '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | The '' | ||