Mercurial > repo
view bin/seen @ 1595:f06495b55b33
<elliott> echo "#!/bin/sh" >bin/seen; echo \'cd /var/irclogs/_esoteric\' >>bin/seen; echo \'ls -r | grep "....-..-..\\.txt" | while read file; do grep -P -i "^..:..:..: <$1>" $file | tail -n 1; done | head -n 1\' >>bin/seen; chmod +x bin/seen
author | HackBot |
---|---|
date | Tue, 22 Jan 2013 00:10:57 +0000 |
parents | b2d94775da38 |
children | 5029ff1dc953 |
line wrap: on
line source
#!/bin/sh cd /var/irclogs/_esoteric ls -r | grep "....-..-..\.txt" | while read file; do grep -P -i "^..:..:..: <$1>" $file | tail -n 1; done | head -n 1