about summary refs log tree commit diff
path: root/contrib/lrocate
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/lrocate')
-rwxr-xr-xcontrib/lrocate5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/lrocate b/contrib/lrocate
new file mode 100755
index 0000000..2186918
--- /dev/null
+++ b/contrib/lrocate
@@ -0,0 +1,5 @@
+#!/bin/sh
+# lrocate [PATTERN] [LR OPTIONS...] - call lr(1) on locate(1) results
+
+pattern=$1; shift
+locate -0 "$pattern" | xe -0 -N0 lr -lG "$@"