The UNIX and Linux Forums  

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 07-16-2008
phemanth24 phemanth24 is offline
Registered User
  
 

Join Date: Apr 2008
Location: Hyderabad, India
Posts: 14
Quote:
Originally Posted by dinjo_jo View Post
Need to apply multiple changes across different files , is this possible in vi editor ?
Not sure I understand your question very well...

My take on this...
Suppose you have two files test, test1.
I'd do a vi test* which will open test.
I'll make my changes and do a write.
Then go to escape mode and give a ":n" which takes me to the next file (test1 here).
I can edit this file and save the normal 'vi' way.
We can do this for many number of files (limit?? not sure buddy)
Hopefully this helps.