Hello,

On Thu, Jan 5, 2017 at 9:13 PM, Floris <jkflo...@dds.nl> wrote:
> Op Thu, 05 Jan 2017 21:07:10 +0100 schreef Nicolas George <geo...@nsup.org>:
>
>
>> Le sextidi 16 nivôse, an CCXXV, Floris a écrit :
>>>
>>> Thanks! But I prefer a solution with "essential" Debian software/
>>> packages
>>
>>
>> ~ $ dpkg -S =perl
>> perl-base: /usr/bin/perl
>> ~ $ dpkg -s perl-base | head -n 2
>> Package: perl-base
>> Essential: yes
>
>
> Sorry, I only looked at the perl package
> dpkg -s perl
> Package: perl
> Status: install ok installed
> Priority: standard
> Section: perl
>
> So every Debian user has the perl command?
Not only Debian users, the vast majority of linux / unix users have
perl installed (maybe now that android is here, this statement is not
true any more ...
With awk:
awk -v vendor=0e11 'p == 1 && /^[^[:space:]]/ { p=0; } $0 ~ "^"vendor"
" {p=1;} p' /usr/share/misc/pci.ids

With sed:
sed -ne '/^0e11/p' -e '/^0e11/,/^[^[:space:]]/ { /^[^[:space:]]/d ; p
}'  /usr/share/misc/pci.ids

Wrapping to script which get an argument is easy

Regards

Reply via email to