if [ `uname -s` = SunOS] then # run solaris commands here fi if [ `uname -s` = Linux] # run linux commands here fi