Skip to content

Commit

Permalink
searchall, skip first line
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Steven Penny committed May 4, 2014
1 parent 3d0f4a0 commit 74da8e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apt-cyg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74da8e7

Please sign in to comment.