RE: separating cygcheck -f package name from version

2017-01-17 Thread Nellis, Kenneth (Conduent)
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 >

Re: separating cygcheck -f package name from version

2017-01-17 Thread Brian Inglis
On 2017-01-17 12:01, Nellis, Kenneth (Conduent) wrote: > I want to be able to extract a package's name from its version > information output by cygcheck -f. For many packages it is > easy: just strip off after the first hyphen; for example: > > $ cygcheck -f /usr/bin/find > findutils-4.6.0-1 > $