Mercurial > repo
view paste/paste.30276 @ 1593:09fd7f98c5f8
<elliott> echo "#!/bin/sh" >bin/seen; echo \'cd /var/irclogs/_esoteric\' >>bin/seen; echo \'for file in $(ls -r | grep "....-..-..\\.txt"); do grep -P -i "^..:..:..: <$1>" $file; done | tail -n 1\' >>bin/seen; chmod +x bin/seen
author | HackBot |
---|---|
date | Tue, 22 Jan 2013 00:07:42 +0000 |
parents | edc576a78ad1 |
children |
line wrap: on
line source
#!/bin/bash if [ ! "$1" ] then PASTE=- else PASTE="$1" fi PASTENUM="$RANDOM" mkdir -p $HACKENV/paste echo 'http://codu.org/projects/hackbot/fshg/index.cgi/raw-file/tip/paste/paste.'"$PASTENUM" cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM"