view bin/seens @ 2272:7a61285e9493

<oerjan> (echo \'#!/bin/sh\'; echo "ps -o cmd") >bin/psocmd; chmod +x bin/psocmd
author HackBot
date Tue, 26 Feb 2013 23:24:34 +0000
parents fd0fb2b0fe7a
children
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