diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-02-12 21:18:15 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-02-12 21:18:15 +0100 |
commit | e22ff893e9696a92318682cbf4401fb84f56be78 (patch) | |
tree | 80987c0ac72ac91ccd554ada953b89b6bdf993eb /xgrep | |
parent | 844374fb0f6f1e3b7f3a322e02fdbcde184502ae (diff) | |
download | xtools-e22ff893e9696a92318682cbf4401fb84f56be78.tar.gz xtools-e22ff893e9696a92318682cbf4401fb84f56be78.tar.xz xtools-e22ff893e9696a92318682cbf4401fb84f56be78.zip |
xgrep: fix for spaces in filenames and grep with only one argument.
Diffstat (limited to 'xgrep')
-rwxr-xr-x | xgrep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xgrep b/xgrep index 3e9359e..c2cbe7a 100755 --- a/xgrep +++ b/xgrep @@ -6,4 +6,4 @@ shift for pkg; do xbps-query -f "$pkg" -done | sed 's/ -> .*//' | xargs grep -d skip -e "$PATTERN" +done | sed 's/ -> .*//' | xargs -d'\n' grep -H -d skip -e "$PATTERN" |