Randomize the meme recommendations, if the list is long. - annna - Annna the ni… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 80eed4c5431540e0f0947e43d80588be169c2112 | |
parent a2e6e1815edfadb85ce52c75ffe4988647f1be76 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Mon, 8 Aug 2022 20:18:11 +0200 | |
Randomize the meme recommendations, if the list is long. | |
Diffstat: | |
M annna-meme-recommend | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/annna-meme-recommend b/annna-meme-recommend | |
@@ -36,6 +36,7 @@ esac | |
# n differences == -4; up to 8 | |
agrep -i -$nerrors "^#${hashtag} " "${hashtagfile}" \ | |
+ | shuf 2>/dev/null \ | |
| head -n 5 \ | |
| cut -d' ' -f 1 \ | |
| tr "\n" " " |