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 > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
[help]Delete or replace text in multiple file and multiple directory dzufauzan Shell Programming and Scripting 16 06-05-2009 12:07 PM
Multiple file existence and checking file size lathish Shell Programming and Scripting 2 06-29-2008 01:03 PM
retrieved multiple lines on multiple places in a file dala Shell Programming and Scripting 8 03-14-2008 03:28 PM
Help with multiple file rename - change case of part of file name steve7 UNIX for Dummies Questions & Answers 7 06-30-2005 02:41 PM
Writting to multiple file jyotipg Shell Programming and Scripting 2 06-25-2004 09:16 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-16-2008
dinjo_jo dinjo_jo is offline
Registered User
  
 

Join Date: May 2008
Posts: 73
Multiple Changes to File.

Need to apply multiple changes across different files , is this possible in vi editor ?
  #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.
  #3 (permalink)  
Old 07-16-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,308
It depends on what changes you need to apply. Instead of vi you can automate the job with other tools like sed or awk.

Regards
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0