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 -->
  #3 (permalink)  
Old 10-11-2008
drl's Avatar
drl drl is offline Forum Advisor  
Registered User
  
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 712
Hi.

There is a difference between storing the text of a command and storing the results of a command in a variable; vino provided the latter. In any case, you need to omit the spaces around the "=" sign. If you have a space, then the Bourne family shells will assume you wish to run a command, such as FOO. That usually produces an error message, as you have seen.

It is good that you provided the evidence for your problem. However, data and commands are far easier to read when you place them inside CODE blocks as vino did. To do that, select the text and press the # just above the editing window.

Best wishes ... cheers, drl