dollar symbol making sense in shell script