Introduction
Introduction Statistics Contact Development Disclaimer Help
lsmemes - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
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
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.