view bin/seen @ 1591:56b9b6c3d024

<ion> printf \'%s\\n\' \'#!/bin/sh\' "find /var/irclogs/_esoteric -mindepth 1 -maxdepth 1 -type f -name \'????-??-??.txt\' | sort -r | xargs -d\'\\n\' -r tac -- | grep \\"^..:..:..: <"\'$1\'">\\" | head -n 1" >bin/seen; chmod 755 bin/seen; cat bin/seen
author HackBot
date Tue, 22 Jan 2013 00:00:09 +0000
parents 7c9e039c98c7
children fd0fb2b0fe7a
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 tac -- | grep "^..:..:..: <$1>" | head -n 1