(standard_in) 1: parse error

Hi all,

Could someone please to tell me when do we exactly get the below error and how to get rid of it.

I am unable to trace the error.

(standard_in) 1: parse error

Thanks in advance !!

Hi.

It's the kind of error that bc gives you if, for example, you have an undeclared variable, or passing something to it that it doesn't understand:

$ echo "scale=1; $X * 3" | bc
(standard_in) 1: parse error

$ echo "scale=3; x 3" | bc
(standard_in) 1: parse error

Thanks Scottn.I will replace all the commands which has bc and try.

Thanks again

Hi

when i use expr command instead of bc, i get the below error.

expr: non-numeric argument

Please help :frowning:

Thanks !!

Isn't that the same question as here?