lsmemes - annna - Annna the nice friendly bot.
HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
---
lsmemes (381B)
---
1 #!/bin/sh
2
3 MEMEFILE=/home/annna/bin/modules/hashtags/hashtags.txt
4 MEMEDIR=/br/gopher/memecache
5
6 printf "meme2\n"
7
8 while read -r tag meme;
9 do
10 memeuri="$(printf "%s\n" "${meme}" | cut -d' ' -f 2)"
11 memefile="$(basename "${memeuri}")"
12 hash="$(sha512sum ${MEMEDIR}/${memefile} | cut -d' ' -f 1)"
13 [ -z "${hash}" ] && continue
14
15 printf "%s %s %s\n" $tag $meme $hash
16 done < $MEMEFILE
17