Clever bash hack Posted on April 20, 2012 by Christopher I stubled across this from a colleague at my new gig: #!/bin/bash if uname -r | { IFS=.- read -r a b c _; [ "$((a*10000+b*100+c))" -lt 20622 ]; }; then echo 'Your kernel is too old!'; else echo 'Your kernel is 2.6.22 or newer!' fi