This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: separating cygcheck -f package name from version


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]