which package a file belongs to
Matthew Flaschen
matthew.flaschen at gatech.edu
Sun Jan 18 16:41:17 UTC 2009
Nils Kassube wrote:
> Matthew Flaschen wrote:
>> Nils Kassube wrote:
>>> 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.
>
> Sorry, I don't understand why it shouldn't work. Here both commands have
> the same output.
Nothing is being passed to the cut command, so first you get:
cut: -: Input/output error
then dpkg -l gets no other parameters so prints everything.
Note, this is actually tested.
Matt Flaschen
More information about the ubuntu-users
mailing list