[SunHELP] sed-help
Kurt Huhn
kurt at k-huhn.com
Mon Dec 9 07:58:59 CST 2002
On Mon, 9 Dec 2002 14:13:54 +0700
"Sangbutsarakum, Patai" <patais at reach.com> wrote:
>
> I've try with sed -e 's/86400/30/' db.file
> but the modified file only show on stdout not directly modify the file's
> content.
>
If you want to use sed, you need to redirect the output to another file
(assuming your command above otherwise works, but doesn't make files):
sed -e 's/86400/30/' db.file > db.temp.file
Then you can go through and delete the orig files, and rename the files you
just created to the original name. More on that if you still need help.
--
Kurt
kurt at k-huhn.com
More information about the SunHELP
mailing list