4 # Desc: Randomly remove 10% of stdin lines
5 # Depends: Bash 5.1.16; GNU Coreutils 8.32 (shuf, nl, head, sort, cut)
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."