mirror of
https://github.com/notwa/rc
synced 2024-11-05 02:29:06 -08:00
fix trash example
This commit is contained in:
parent
47a4f07430
commit
c152abaca1
1 changed files with 2 additions and 2 deletions
4
sh/trash
4
sh/trash
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue