> is there a way to replace all in a file?

:1,$s/old/new/g

> It would be really good to if there was a way to do it to all files in 
> a directory, or perhaps a list of files.

$ for file in list-of-files
> do
>    sed 's/old/new/g' $file > $file.new
> done

-- 
Jon Beck, PhD                             mailto:[EMAIL PROTECTED]
Assoc Professor, Computer Science              2162 Violette Hall
Truman State University                              660.785.7233
Kirksville, MO  63501                 http://vh216202.truman.edu/

-----------------------------------------------------------------
To get off this list, send email to [EMAIL PROTECTED]
with Subject: unsubscribe
-----------------------------------------------------------------

Reply via email to