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 > 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 -->
  #4 (permalink)  
Old 11-27-2007
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,122
Quote:
Originally Posted by andyblaylock View Post
Thankyou for your response.
Im presuming that I would need to be in vi to run the search command?
why are you presuming that?
Quote:
Originally Posted by andyblaylock View Post
Or can I run this from my regular user prompt?
yes
Quote:
Originally Posted by andyblaylock View Post

I have lots of files in one directory so to run vi I would need to consolidate all these files into one big file and run vi on the one consolidated file and complete the search??

Andy
I don't understand what 'vi' has to do what you're trying to do...
Copy a sample set of files to a 'sand-box' directory and execute the script on this directory ONLY. Once satisfied with the result - proceed to the 'real' thing.