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 10-07-2008
CAGIRL CAGIRL is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 18
I tried that
var=$g_bin/MISSPIGGY/dc0000.auto_deploy.MISSPIGGY.PRD.cp_austin.20081007122846.26060
perl -pi -e "s/FILENAME/${var}/g" myfile

and am getting the following error:
Bareword found where operator expected at -e line 1, near "s/FILENAME//dbmgtu01"
syntax error at -e line 1, near "s/FILENAME//dbmgtu01"
Execution of -e aborted due to compilation errors.
Any ideals as to why it is not working?