The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-29-2009
tintin72 tintin72 is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 23
Quote:
Originally Posted by jayan_jay View Post
Try this and change according to ur variables.

echo "scale=4;$b+$c" | bc
I'm not sure I understand you. Doing
Code:
echo "$zposition" |bc

returns the correct output. But doing
Code:
echo "sl$[n]_z$[zposition].txt"

does not. This is my problem.