47db83f0b1f26480a67c6fedf5527965df9b96ad
4 # Desc: Randomly remove 10% of stdin lines
5 # Depends: GNU Coreutils 8.32 (shuf)
11 # Calc lines to keep, lk
13 lk
="$((lc * 900 / 1000))";
15 printf "%s\n" "${lines[@]}" | \
21 }; # randomly eliminate 10% of lines
23 echo "$WARNING:This is a Bash function definition."