d=`grep 'Module fglrx:' -C 1 /var/log/Xorg.0.log|tail -c 7` echo "I love you." echo "" if [ -z $d ]; then echo "You are not using the fglrx driver at all, `whoami`."; else echo "Hey `whoami`, you are using fglrx version: $d"; fi