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 -->
  #2 (permalink)  
Old 11-23-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,794
This takes two parameters $1 is the old value of word, $2 is the new value.
The code searches every file in the directory for the old string, if it finds the string in the file and the filename does not end in .svn - then it displays the whole file on the screen with the old word replaced by the new word.