changeset 1592:fd0fb2b0fe7a

<elliott> sed -is \'s/grep/grep -P -i/\' bin/seen
author HackBot
date Tue, 22 Jan 2013 00:02:03 +0000
parents 56b9b6c3d024
children 09fd7f98c5f8
files bin/seen bin/seens
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/seen	Tue Jan 22 00:00:09 2013 +0000
+++ b/bin/seen	Tue Jan 22 00:02:03 2013 +0000
@@ -1,2 +1,2 @@
 #!/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
+find /var/irclogs/_esoteric -mindepth 1 -maxdepth 1 -type f -name '????-??-??.txt' | sort -r | xargs -d'\n' -r tac -- | grep -P -i "^..:..:..: <$1>" | head -n 1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/seens	Tue Jan 22 00:02:03 2013 +0000
@@ -0,0 +1,2 @@
+#!/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