Skip to content

kishaningithub/randomtext

Repository files navigation

Randomtext

Build Status Go Reference Go Report Card Downloads Latest release

Command line random text generator

Usage

$ 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")

Examples

  • 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.

Use cases

  • Testing the capacity of code editors/IDEs
  • Generate logs to generate load for log forwarders like fluent bit

Installation

Mac OSX

$ brew install kishaningithub/tap/randomtext

Other platforms

Prebuilt binaries for various platforms are available in the releases page. Download it, Extract it and add the binary in your $PATH

Development

To build

make build

About

Command line random text generator

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy