1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 02:29:06 -08:00

fix trash example

This commit is contained in:
Connor Olding 2021-08-01 11:04:20 -07:00
parent 47a4f07430
commit c152abaca1

View file

@ -7,8 +7,8 @@ trash() { ### @-
### output a given number of bytes from `/dev/random`.
###
### ```
### $ trash 10 | hexdump -e '15 1 "%02X " 1 1 "%02X\n"'
### CB 72 31 A1 BB F0 EC 9F 6E BE
### $ trash 10 | xxp
### 3A A5 4F C7 6D 89 E7 D7 F7 0C
### ```
[ $# -le 1 ] || { printf "%s\n" "$0: too many arguments" >&2; return 1; }
dd status=none if=/dev/random bs=1 count="${1:?missing count argument}"