Re: When do I use perl, awk, sed, grep, cut etc.. Was[OT] get all devices from a vendor from pci.ids

2017-01-06 Thread Javier Barroso
Hello, On Fri, Jan 6, 2017 at 10:46 PM, Floris wrote: >>> 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 ve

When do I use perl, awk, sed, grep, cut etc.. Was[OT] get all devices from a vendor from pci.ids

2017-01-06 Thread Floris
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

Re: [OT] get all devices from a vendor from pci.ids

2017-01-06 Thread Javier Barroso
Hello, On Thu, Jan 5, 2017 at 9:13 PM, Floris wrote: > Op Thu, 05 Jan 2017 21:07:10 +0100 schreef Nicolas George : > > >> 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

Re: [OT] get all devices from a vendor from pci.ids

2017-01-05 Thread Floris
Op Thu, 05 Jan 2017 21:07:10 +0100 schreef Nicolas George : 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:

Re: [OT] get all devices from a vendor from pci.ids

2017-01-05 Thread Floris
Op Thu, 05 Jan 2017 18:13:41 +0100 schreef Javier Barroso : Hello, On Thu, Jan 5, 2017 at 6:00 PM, Floris wrote: Op Wed, 04 Jan 2017 17:27:55 +0100 schreef Floris : (Not really a Debian question, but I know there are smart people on this list.) I want to search the pci.ids file (from

Re: [OT] get all devices from a vendor from pci.ids

2017-01-05 Thread Nicolas George
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 signature.asc Description: Digital signature

Re: [OT] get all devices from a vendor from pci.ids

2017-01-05 Thread Javier Barroso
Hello, On Thu, Jan 5, 2017 at 6:00 PM, Floris wrote: > Op Wed, 04 Jan 2017 17:27:55 +0100 schreef Floris : > > >> (Not really a Debian question, but I know there are smart people on this >> list.) >> >> I want to search the pci.ids file (from the pciutils package) for all >> Compaq devices. >> P

Re: [OT] get all devices from a vendor from pci.ids

2017-01-05 Thread Floris
Op Wed, 04 Jan 2017 17:27:55 +0100 schreef Floris : (Not really a Debian question, but I know there are smart people on this list.) I want to search the pci.ids file (from the pciutils package) for all Compaq devices. Pci ID's 0e11: , 1032: and 10da: matches Compaq. Unfortunat

[OT] get all devices from a vendor from pci.ids

2017-01-04 Thread Floris
(Not really a Debian question, but I know there are smart people on this list.) I want to search the pci.ids file (from the pciutils package) for all Compaq devices. Pci ID's 0e11: , 1032: and 10da: matches Compaq. Unfortunately, only at a beginning of a list the id of the vendo