diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2021-07-12 16:27:52 +0300 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2021-07-12 16:27:52 +0300 |
| commit | e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8 (patch) | |
| tree | 697bca3add8a534bd6ed6a82308ef5869cc78393 /.local/bin/rand | |
| parent | 2d5fa70da78d05147a4055c51c983b93a4bc32dd (diff) | |
| download | dotfiles-e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8.tar.gz dotfiles-e3bbee81de559c1b4dea7a83d46da3b4e00cc2a8.zip | |
move to GNU stow approach on managing dotfiles
Diffstat (limited to '.local/bin/rand')
| -rwxr-xr-x | .local/bin/rand | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/.local/bin/rand b/.local/bin/rand deleted file mode 100755 index 795885b..0000000 --- a/.local/bin/rand +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -# rand (inspired by https://rgz.ee/random.html) -# -# generate random string from charset as first argument and length as second -# -# example: -# $ rand '1-9a-f' 10 -# > 329402aa42 -# -# defaults: -# charset -- all printable characters and space -# length -- 25 - -[ -z $1 ] && charset=' -~' || charset=$1 -[ -z $2 ] && length=25 || length=$2 - -tr -cd "$charset" < /dev/urandom | fold -w "$length" | head -n 1 |
