Mercurial > repo
view bin/seen @ 1589:bd223d4ce387
<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:05 +0000 |
parents | 2117fb584995 |
children | 7c9e039c98c7 |
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