This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: separating cygcheck -f package name from version
- From: "Nellis, Kenneth (Conduent)" <Kenneth dot Nellis at conduent dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 17 Jan 2017 19:56:17 +0000
- Subject: RE: separating cygcheck -f package name from version
- Authentication-results: sourceware.org; auth=none
- References: <4ce98a93-0329-5061-09d7-7c6ef764b399@SystematicSw.ab.ca>
From: Brian Inglis
>
> $ fgrep "$(cygcheck -f /usr/bin/find | sed 's/\r$//').tar." \
> /etc/setup/installed.db | cut -d' ' -f1
> findutils
>
> OR
>
> $ fgrep "$(cygcheck -f /usr/bin/find | d2u).tar." \
> /etc/setup/installed.db | cut -d' ' -f1
> findutils
>
> cygcheck -f outputs DOS lines with \r which need stripped as
> shown, using sed (Base), d2u, or your choice of available tool.
Excellent! Thank you! --Ken
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple