[thelist] stupid simple sed thing

Jay Greenspan jay at trans-city.com
Fri Mar 1 09:17:01 CST 2002


I'm working on a shell script and am caught up on a simple task.

I need to do a reg ex string replacement in a file. sed makes the
replacement OK, but it gives the result to standard output,  and I can
redirect the output to a file. But I can't replace the original file
with the sed output. Is there a flag I'm missing here? Or is there
another way I should be doing this? Just a simple string replacement in
a file from the shell.

I feel awfully dumb.

thanks

-j




More information about the thelist mailing list