real-world-onion-sites/annotate.sh
2018-06-12 00:55:59 +01:00

13 lines
233 B
Bash
Executable File

#!/bin/sh
src=README.md
dst=${src}~~
for output in out/* ; do
test ! -s $output || continue
onion=`basename $output`
echo annotating: $onion
perl -pe "s!\$! :sos:! if (m!$onion!);" <$src >$dst
mv $dst $src
done