Command line random text generator
$ randomtext -h
Usage of randomtext:
  -profile string
    	Type of profile - cpu,mem
  -size string
    	Size of generated random text in KB, MB, GB, TB (default "1MB")
  -type string
    	Type of text to be generated - chars, words, zeros (default "chars")- Generate 1 KB random characters
- randomtext --size=1KB | pv > output.txt
 
- Generate 100MB random words
- randomtext --size=100MB --type=words | pv > output.txt
 
- Generate 1GB of zeros
- randomtext --size=1GB --type=zeros | pv > output.txt
 
Source of words. The above commands use pv for pipeline visualization only.
- Testing the capacity of code editors/IDEs
- Generate logs to generate load for log forwarders like fluent bit
$ brew install kishaningithub/tap/randomtextPrebuilt binaries for various platforms are available in the releases page.
Download it, Extract it and add the binary in your $PATH
To build
make build