which package a file belongs to
Matthew Flaschen
matthew.flaschen at gatech.edu
Sun Jan 18 11:31:18 UTC 2009
Nils Kassube wrote:
> frmas wrote:
>> I've tried to optimize that, but I failed. I don't know how to get rid
>> of those little ":" at the end of the name. This is my command line :
>> dpkg -S /usr/bin/nedit | dpkg -l `awk '{print $1}'`
>> but awk returns "nedit:" ;-(
>> I do not know how to remove those ":".... Francois
>
> How about this?
>
> dpkg -S /usr/bin/nedit|dpkg -l $(cut -f1 -d':')
Doesn't work. But:
dpkg -l `dpkg -S /usr/bin/nedit|cut -f1 -d':'`
would.
Matt Flaschen
More information about the ubuntu-users
mailing list