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 -->
  #5 (permalink)  
Old 11-25-2008
valluvan valluvan is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 27
One more question:

I want to compare the value of the variable against a string and i am using the below code,but doe's'nt seem to do it...is there anything wrong with it??


Code:
if echo "$PRECHECK" | grep 'FALSE'; 
    then
      echo "File Ftped Successfully: " $f
      mv $f "FTPED_"$f
    fi


Thanks