Files
oam/knowledge base/jot.md

1.2 KiB

jot

Generates sequential or random data.

Table of contents

  1. TL;DR
  2. Further readings
  3. Sources

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: