The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Want to replace characters arndorff Shell Programming and Scripting 5 01-29-2008 12:05 PM
How to replace characters 7 through 14 of every line in a file jakSun8 Shell Programming and Scripting 9 12-12-2007 10:13 PM
Replace Special characters in a file solai UNIX for Dummies Questions & Answers 1 07-13-2006 07:36 AM
Replace characters in a string using their ascii value roops Shell Programming and Scripting 2 03-03-2005 09:51 PM
how to replace control characters using sed? hillxy Shell Programming and Scripting 5 10-16-2003 07:12 AM

Reply
 
LinkBack Thread Tools Display Modes
  #8 (permalink)  
Old 10-26-2006
Registered User
 

Join Date: Jul 2006
Posts: 32
Quote:
Originally Posted by vgersh99
no, but use the same 'substitute' expression in the vi 'command' mode.
Thanks,

could you please explain me what does this command mean?

:%s/crmrl01/crmpl01/g
Reply With Quote
Forum Sponsor
  #9 (permalink)  
Old 10-26-2006
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 2,999
Code:
:%s/crmrl01/crmpl01/g
Code:
: - vi command 'mode'
% - for ALL the lines in the files
s - substutute the following:
     string 'crmrl01' with string 'crmpl01'
g - Globally for each line [not just once (by default), byut for multiple occorences of
      string  'crmrl01'
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0