[NTLUG:Discuss] In-place file editor
Leroy Tennison
leroy_tennison at prodigy.net
Sun Sep 24 22:29:09 CDT 2006
Eric Schnoebelen wrote:
> Leroy Tennison writes:
> - Looking for a scriptable (non-interactive) program which will modify a
> - text file without deleting the original and replacing it with a new
> - one.
>
> ed(1) fed via a here-document?
>
> Since ed(1) accepts commands from stdin (and not the
> tty) you can easily feed it a here-document of commands to do
> the appropriate edits.
>
> --
> Eric Schnoebelen eric at cirr.com http://www.cirr.com
> Celestial navigation is based on the premise that the Earth is the
> center of the universe. The premise is wrong, but the navigation
> works. An incorrect model can be a useful tool. -- Kelvin Throop III
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
>
I'll check it out, thanks.
More information about the Discuss
mailing list