Skip to content

Instantly share code, notes, and snippets.

@jbloetz
Created August 4, 2012 13:35
Show Gist options
  • Save jbloetz/3257801 to your computer and use it in GitHub Desktop.
Save jbloetz/3257801 to your computer and use it in GitHub Desktop.

Revisions

  1. jb revised this gist Aug 4, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pg.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #!/bin/bash
    export LC_ALL=C
    cat /dev/urandom | tr -cd [:graph:] | head -c ${1:-32}
    cat /dev/urandom | tr -cd [:graph:] | head -c ${1:-16}
    echo
  2. jb created this gist Aug 4, 2012.
    4 changes: 4 additions & 0 deletions pg.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/bash
    export LC_ALL=C
    cat /dev/urandom | tr -cd [:graph:] | head -c ${1:-32}
    echo