I am new to bash script. Probably this is very easy but for me it's not working. How can I assign value of $x1+$x2 to bc by piping. here in my code $bc holds no value.echo -n 'value x1 : 'read x1echo -n 'value x2 : 'read x2echo $x1+$x2 | bcecho $bc
How to use pipe to assign a variable
bash;pipe;variable