Mercurial > repo
changeset 2037:6045a2f49332
<ais523> echo "#!/bin/sh" >bin/list; echo \'oldpwd=`pwd`; cd /var/irclogs/_esoteric; name=$(cat $(ls ????-??-??.txt | tail -1) | tail -1 | sed "s/[^<]*<//; s/>.*//"); cd $oldpwd; sed -i "s/.\\$nam[e]./$name \\&/" bin/list; echo "$name"\' >>bin/list
author | HackBot |
---|---|
date | Thu, 07 Feb 2013 21:42:15 +0000 |
parents | c989fa13ed4b |
children | 968edd8d5e19 |
files | bin/list |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/list Thu Feb 07 21:41:15 2013 +0000 +++ b/bin/list Thu Feb 07 21:42:15 2013 +0000 @@ -1,2 +1,2 @@ #!/bin/sh -cd /var/irclogs/_esoteric; name=$(cat $(ls ????-??-??.txt | tail -1) | tail -1 | sed "s/[^<]*<//; s/>.*//"); sed -i "s/.\$nam[e]./$name \&/" bin/list; echo "$name" +oldpwd=`pwd`; cd /var/irclogs/_esoteric; name=$(cat $(ls ????-??-??.txt | tail -1) | tail -1 | sed "s/[^<]*<//; s/>.*//"); cd $oldpwd; sed -i "s/.\$nam[e]./$name \&/" bin/list; echo "$name"