UNIX for Dummies Questions & Answers

This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

how to find and replace strings in multiple files

 

 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-11-2011
etldeveloper etldeveloper is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 9 June 2016, 1:42 PM EDT
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
how to find and replace strings in multiple files

Hi All,
Iam new to unix, I need to find string and replace it in the file name. Like
text_123_0.txt,text_123_1.txt,text_123_2.txt. I need to search 123 and replace it with 234 . Is there any unix command to replace them in single command since i have 5 directories. So i need to go each and every directory.
I need to replace 123 with 234 in each directory. Please give any suggestions

Last edited by etldeveloper; 02-11-2011 at 12:55 PM.. Reason: Moved from AIX forum
Sponsored Links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk find and replace in multiple files jdhahbi Shell Programming and Scripting 7 07-22-2009 10:03 AM
Help with Find/Replace Javascript Injected Strings in mulitple files zzlegs Shell Programming and Scripting 1 05-28-2009 07:29 PM
Find and replace a string in multiple files pharos467 UNIX for Dummies Questions & Answers 2 11-05-2007 10:47 PM
Find and replace files in multiple folders lodey Shell Programming and Scripting 6 09-28-2007 02:00 AM



All times are GMT -4. The time now is 06:25 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?