mirror of
https://github.com/notwa/rc
synced 2024-07-01 03:07:13 -07:00
fix trash example
This commit is contained in:
parent
47a4f07430
commit
c152abaca1
4
sh/trash
4
sh/trash
|
@ -7,8 +7,8 @@ trash() { ### @-
|
||||||
### output a given number of bytes from `/dev/random`.
|
### output a given number of bytes from `/dev/random`.
|
||||||
###
|
###
|
||||||
### ```
|
### ```
|
||||||
### $ trash 10 | hexdump -e '15 1 "%02X " 1 1 "%02X\n"'
|
### $ trash 10 | xxp
|
||||||
### CB 72 31 A1 BB F0 EC 9F 6E BE
|
### 3A A5 4F C7 6D 89 E7 D7 F7 0C
|
||||||
### ```
|
### ```
|
||||||
[ $# -le 1 ] || { printf "%s\n" "$0: too many arguments" >&2; return 1; }
|
[ $# -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}"
|
dd status=none if=/dev/random bs=1 count="${1:?missing count argument}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user