##!/bin/bash # STRING="06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8180L 802.11b MAC (rev 20)" if [ $STRING = `lspci | grep RTL` ]; then echo "woot this works" else echo "shit" fi