Mercurial > repo
annotate bin/ls @ 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 | c333e85af6bf |
children |
rev | line source |
---|---|
1961 | 1 #!/bin/sh |
1970
c333e85af6bf
<kmc> echo -e \'#!/bin/sh\\nif /bin/ls -id "$@" | grep -q \'^752131 \'; then echo \'"\'"\'As the wisdom directory contains many files named after nicks, listing it in public annoys people. Try `pastewisdom instead.\'"\'"\'; else exec /bin/ls "$@"; fi\' > bin/ls
HackBot
parents:
1969
diff
changeset
|
2 if /bin/ls -id "$@" | grep -q ^752131 ; then echo 'As the wisdom directory contains many files named after nicks, listing it in public annoys people. Try `pastewisdom instead.'; else exec /bin/ls "$@"; fi |