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 > 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 -->
  #2 (permalink)  
Old 10-10-2008
SFNYC SFNYC is offline
Registered User
  
 

Join Date: Jun 2008
Location: New York City
Posts: 95
Remove the blanks surrounding the equal sign

Code:
$ status = `grep -i "YES I M HERE" /tmp/test.txt`
ksh: status: not found

$ status=`grep -i "YES I M HERE" /tmp/test.txt`

$ print "$status"
YES I M HERE