Mercurial > repo
view bin/bseen @ 1721:ab80805a8878
<elliott> echo "#!/bin/sh" >bin/undo; echo \'hg diff -c "$@" | patch -R\' >>bin/undo; chmod +x bin/undo
author | HackBot |
---|---|
date | Thu, 24 Jan 2013 21:13:03 +0000 |
parents | d32a6933bc5d |
children |
line wrap: on
line source
#!/usr/bin/env bash s="<${1% }>" while ((i++ < 30)) && read -r file; do line= while read -r t n m; do [[ $n =~ $s ]] && line="$t $n $m"; done <"$file" [[ -n "$line" ]] && { printf '%s:%s\n' "${file##*/}" "$line"; exit; } done < <(ls -r /var/irclogs/_esoteric/????-??-??.txt) echo 'well, not lately'