summary refs log tree commit diff
path: root/xgrep
blob: c2cbe7a1fe418498dc34090d21b11049953c22fa (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/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 -d'\n' grep -H -d skip -e "$PATTERN"