1 2 3 4 5 6
OSNAME=`uname -s` SEDBIN="sed -i" if [ "${OSNAME}" = "Darwin" ] ; then SEDBIN="sed -i ''" LANG=C fi