Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-10-2004, 01:39 PM   #1
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80

Rep: Reputation: 15
How to replace text in multiple files

So I have a mailman list where I would like to change the name of the list entirely. Everything is working just great, except I want the name changed. It seems that making a copy of this mailing list and simply replacing the name of it (foo) with the new name (bar) would do the trick, but... whats the trick to create such a batch process? All the files I'd like to replace foor with bar with are in the same directory. Perhaps just a heads up on what tools would be used would be great.

Old 02-10-2004, 01:50 PM   #2
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Old 02-10-2004, 02:03 PM   #3
Registered: Nov 2003
Location: San Francisco, CA
Distribution: FreeBSD, OpenBSD, Gentoo, OS X
Posts: 80

Original Poster
Rep: Reputation: 15
wouldn't perl be a more sound solution? *shrug*


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and replace text in multiple file Bad_Bob Linux - Software 9 05-08-2008 02:31 AM
replace text in files and directories rincewind Linux - Software 4 10-27-2004 11:29 AM
Search and Replace over multiple files The_Nerd Linux - Software 8 06-20-2004 06:59 AM
Script file to replace large text blocks in files? stodge Linux - Software 0 09-27-2003 10:53 AM
trying to search and replace text file for single & multiple line breaks separately brokenfeet Programming 7 08-29-2003 01:56 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration