The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #6 (permalink)  
Old 07-01-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,927
Humm, I have looked at this shell script a few times and scratched my head.

You set the variable 'q' to a string
Code:
q="scale=3; $zpos"
yet you expect to be able to subtract a number from it
Code:
zposition=$q-$f
How is this meant to work?

Last edited by fpmurphy; 07-01-2009 at 09:12 PM.. Reason: fixed typo