The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
replace character in a string pattern and save the change in same file mihir0011 Shell Programming and Scripting 2 09-26-2007 02:31 PM
perl - how do i find out if a file doesn't contain a pattern? mjays Shell Programming and Scripting 4 09-19-2007 03:28 AM
Find a pattern and replace using sed. maridhasan Shell Programming and Scripting 5 09-17-2007 10:43 PM
find pattern and replace another field sergiioo Shell Programming and Scripting 3 04-10-2007 09:19 PM
find pattern in FILES and replace it ?? tamer UNIX for Dummies Questions & Answers 4 03-03-2001 06:30 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-29-2006
Registered User
 

Join Date: Aug 2006
Posts: 5
find and replace a pattern in a file

Hi
I am having 2 files file1.c and file2.c
Now i want to find all the occurances of pattern "abc" in file1.c, file2.c and replace with pattern "def" using shell script without using sed and with using sed.
Thanks in advance...
raju
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-29-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,419
Gee. This sounds like homework. We don't allow homework - see our rules.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:06 PM.


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