Update shuf.md

This commit is contained in:
bcoles 2020-03-17 17:19:50 +11:00 committed by Andrea Cardaci
parent 696b9aa173
commit 67a562d2aa

View File

@ -1,16 +1,23 @@
---
description: The read file content is corrupted by adding a newline.
functions:
file-read:
- description: The read file content is corrupted by randomizing the order of NUL terminated strings.
code: |
LFILE=file_to_read
shuf -z "$LFILE"
file-write:
- code: |
- description: The written file content is corrupted by adding a newline.
code: |
LFILE=file_to_write
shuf -e DATA -o "$LFILE"
suid:
- code: |
- description: The written file content is corrupted by adding a newline.
code: |
LFILE=file_to_write
./shuf -e DATA -o "$LFILE"
sudo:
- code: |
- description: The written file content is corrupted by adding a newline.
code: |
LFILE=file_to_write
sudo shuf -e DATA -o "$LFILE"
---