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