MY CODE :
echo "Please Enter The Purchase Price : " read $PurPrice echo "Please Enter The Selling Price : " read $SellPrice if [ "$PurPrice" -eq "$SellPrice" ] then echo "No Profit No Loss !" elif [ "$PurPrice" -gt "$SellPrice" ] then loss=echo "$pp - $sp" | bc -l echo "There is loss of $loss." else profit=echo "$sp - $pp" | bc -l echo "There is Profit $profit. " fi THE ERRORS :
Please Enter The Purchase Price : ': not a valid identifier ` Please Enter The Selling Price : ': not a valid identifier ` Newfile.sh: line 5: $'\r': command not found Newfile.sh: line 10: syntax error near unexpected token `elif' 'ewfile.sh: line 10: elif [ "$PurPrice" -gt "$SellPrice" ]
$in thereadcommands.