about summary refs log tree commit diff
path: root/xgrep
blob: 20be2a3a6ee64d29c7801f1d23375e4a5f698092 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh
# xgrep PATTERN PKGS... - search files limited to XBPS package contents

PATTERN=${1:?pattern missing}
shift
for pkg; do
	xbps-query -f "$pkg"
done | sed 's/ -> .*//' | xargs grep -d skip -e "$PATTERN"