LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   is there a linux utility.... (https://www.linuxquestions.org/questions/linux-software-2/is-there-a-linux-utility-137508/)

linuxnube 01-22-2004 01:15 PM

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!

RolledOat 01-22-2004 01:24 PM

sed

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

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

R.O.

mjenkins 01-22-2004 01:28 PM

use:
chcase -x 's/before/after/' '*'

you may have to google chcase and install it.

mjenkins 01-22-2004 01:29 PM

oh, sorry chcase is for filenames

linuxnube 01-22-2004 01:45 PM

sed seems to fit the bill.

Thanks!


All times are GMT -5. The time now is 07:23 AM.