blob: 3e9359e538f84f4e5113c70d665dcad7f7a96e5e (
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 grep -d skip -e "$PATTERN"
|