projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat(user/mw_wc2sp.sh):Save wikicode files in separate dir
[BK-2020-03.git]
/
unitproc
/
bkt-decimate
diff --git
a/unitproc/bkt-decimate
b/unitproc/bkt-decimate
index 2ad091ff78f2dd673857af55f7ea9afde608586c..855ab0c71b8c88ec9f56ccf6f9a864b09794419c 100644
(file)
--- a/
unitproc/bkt-decimate
+++ b/
unitproc/bkt-decimate
@@
-12,6
+12,7
@@
decimate() {
lc="${#lines[@]}";
lk="$((lc * 900 / 1000))";
lc="${#lines[@]}";
lk="$((lc * 900 / 1000))";
+ # Output
printf "%s\n" "${lines[@]}" | \
nl -w1 -s' ' | \
shuf | \
printf "%s\n" "${lines[@]}" | \
nl -w1 -s' ' | \
shuf | \