Update README.md

This commit is contained in:
skyper
2024-01-07 07:04:07 +00:00
committed by GitHub
parent 3f3e93334e
commit 43c9f686b4
+2 -3
View File
@@ -1613,10 +1613,9 @@ shred -z foobar.txt
```sh ```sh
## SHRED without shred command ## SHRED without shred command
shred() shred() {
{
[[ -z $1 || ! -f "$1" ]] && { echo >&2 "shred [FILE]"; return 255; } [[ -z $1 || ! -f "$1" ]] && { echo >&2 "shred [FILE]"; return 255; }
dd bs=1k count=$(du -sk ${1:?} | cut -f1) if=/dev/urandom >"$1" dd status=none bs=1k count=$(du -sk ${1:?} | cut -f1) if=/dev/urandom >"$1"
rm -f "${1:?}" rm -f "${1:?}"
} }
shred foobar.txt shred foobar.txt