about summary refs log tree commit diff
path: root/xlocate
diff options
context:
space:
mode:
Diffstat (limited to 'xlocate')
-rwxr-xr-xxlocate4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlocate b/xlocate
new file mode 100755
index 0000000..63c2d9b
--- /dev/null
+++ b/xlocate
@@ -0,0 +1,4 @@
+#!/bin/sh
+# xlocate PATTERN - locate files in all XBPS packages
+
+xbps-query --regex -Ro "$@" | sed 's/(http:.*)$//; s/-[^-]*:/\t/'