LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2004, 01:15 PM   #1
linuxnube
Member
 
Registered: Oct 2003
Location: US
Distribution: Fedora C1 & C2
Posts: 81

Rep: Reputation: 15
is there a linux utility....


I need a utility to replace text strings in a text file with a second string. I need to do this on a large set of files.

Is there a linux utility for this?

Thanks!
 
Old 01-22-2004, 01:24 PM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
sed

http://cs.smith.edu/~jfrankli/250f00/sed.html

first hit in google, probably only 30,000 more turorials out there.

R.O.
 
Old 01-22-2004, 01:28 PM   #3
mjenkins
Member
 
Registered: Jun 2003
Location: kc
Distribution: fc2
Posts: 52

Rep: Reputation: 15
use:
chcase -x 's/before/after/' '*'

you may have to google chcase and install it.
 
Old 01-22-2004, 01:29 PM   #4
mjenkins
Member
 
Registered: Jun 2003
Location: kc
Distribution: fc2
Posts: 52

Rep: Reputation: 15
oh, sorry chcase is for filenames
 
Old 01-22-2004, 01:45 PM   #5
linuxnube
Member
 
Registered: Oct 2003
Location: US
Distribution: Fedora C1 & C2
Posts: 81

Original Poster
Rep: Reputation: 15
sed seems to fit the bill.

Thanks!
 
  


Reply


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
does linux have a scandisk utility? spyghost Linux - Newbie 14 02-15-2006 05:16 PM
What non-existing program / utility would you like to see in linux? acidjuice Linux - Software 4 04-08-2005 06:00 AM
simple linux utility that does this? squip Linux - Newbie 1 10-07-2003 03:49 PM
Help with a linux utility Ripper951 Linux - General 6 01-12-2003 01:00 PM
Make Utility and RT Linux twizzard Linux - Newbie 3 06-28-2002 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:51 AM.

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