Lorum Ipsum – let’s learn about grep, ya’ll

Examples:

# Get information only on the VGA device
vgaDevice=$(lspci|grep VGA) # find the VGA device line
vgaDeviceId=$(echo "$vgaDevice" | grep -Eo '^[^ ]+') # select only the first word of a line
lspci -vs $vgaDeviceId # display PCI device by its ID