The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 04-09-2009
srilaxmi srilaxmi is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 22
Deciaml Output using bc

Hi,

when I try to do echo 'scale=3; $a / 1000' | bc
here a=1500

This giving error as "syntax error on line 1 stdin"


why iam getting this error?


Thanks,
Sri