jot: Generate random data
The jot
command can produce sequential or random output:
jot 5
= sequence of 1-5jot -r 5
= 5 random numbers (1-100)jot -r 5 7 42
= 5 random numbers (7-42)jot -w "foo-" -r 5
= 5 random numbers appended tofoo-
(1-100) e.g.foo-42
jot -w "foo-%03d-bar" -r 5
= 5 random numbers inserted toprintf
format string (1-100) e.g.foo-011-bar
Bit of trivia: the name jot
is related to the APL function iota
.
Published on: 07 Jun 2023