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."