annotate paste/paste.16040 @ 2040:9464fe0ca8a2

<ais523> echo "#!/bin/sh" >bin/list; echo -n \'oldpwd=`pwd`; cd /var/irclogs/_esoteric; name=$(cat $(ls ????-??-??.txt | tail -1) | tail -1 | sed "s/[^<]*<//; s/>.*//"); cd $oldpwd; echo -n $name "" >> bin/list; echo \' >> bin/list
author HackBot
date Thu, 07 Feb 2013 21:46:12 +0000
parents 0ea966b84787
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1804
0ea966b84787 <oerjan> cat bin/\'?\' | paste
HackBot
parents: 359
diff changeset
1 #!/bin/sh
0ea966b84787 <oerjan> cat bin/\'?\' | paste
HackBot
parents: 359
diff changeset
2 topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//")
0ea966b84787 <oerjan> cat bin/\'?\' | paste
HackBot
parents: 359
diff changeset
3 ([ \( "$topic" = "ngevd" \) -a \( -e wisdom/ngevd \) ] && cat /dev/urandom && exit 0; ) || [ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; }
0ea966b84787 <oerjan> cat bin/\'?\' | paste
HackBot
parents: 359
diff changeset
4 cat "wisdom/$topic"