Mercurial > repo
view bin/seen @ 1590:7c9e039c98c7
<ion> printf \'%s\\n\' \'#!/bin/sh\' "find /var/irclogs/_esoteric -mindepth 1 -maxdepth 1 -type f -name \'????-??-??.txt\' | sort -r | xargs -d\'\\n\' -r grep \\"^..:..:..: <"\'$1\'">\\" -- | tail -n 1" >bin/seen; chmod 755 bin/seen; cat bin/seen
author | HackBot |
---|---|
date | Mon, 21 Jan 2013 23:58:55 +0000 |
parents | bd223d4ce387 |
children | 56b9b6c3d024 |
line wrap: on
line source
#!/bin/sh find /var/irclogs/_esoteric -mindepth 1 -maxdepth 1 -type f -name '????-??-??.txt' | sort -r | xargs -d'\n' -r grep "^..:..:..: <$1>" -- | tail -n 1