mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
1.1 KiB
1.1 KiB
jot
Generates sequential or random data.
Table of contents
TL;DR
# Print 21 evenly spaced increasing numbers from -1 to 1.
jot '21' '-1' '1.00'
jot -p '2' '21' '-1' '1'
# Print all ASCII characters.
jot -c '128' '0'
# Print all strings from 'xaa' to 'xaz'.
jot -w 'xa%c' '26' 'a'
# Print 20 random 8-letter strings.
jot -r -c '160' 'a' 'z' | rs -g '0' '8'
# Create files containing a bunch of 'x' characters for exactly 1024 bytes of
# data.
jot -b 'x' '512' > 'file.txt'
# Print all lines of 80 characters or longer.
grep $(jot -s "" -b '.' '80') 'file.txt'
Further readings
Sources
All the references in the further readings section, plus the following: