searchall, skip first line

The "searchall" command was including the first line of the HTTP response when
looking for package names, example

    Found 7 matches for /diff.exe

If the search contained a "/" then the search itself would show up as a result
package. New awk statement filters out first line.
This commit is contained in:
Steven Penny 2014-05-04 17:15:07 -05:00
parent 3d0f4a0c84
commit 74da8e7d63
1 changed files with 1 additions and 0 deletions

View File

@ -292,6 +292,7 @@ case "$command" in
cd /tmp
wget -O matches cygwin.com/cgi-bin2/package-grep.cgi?"$qs"
awk '
NR > 1 &&
! /-src\t$/ &&
! mc[$2]++ &&
$0=$2