[NTLUG:Discuss] In-place file editor
Eric Schnoebelen
eric at cirr.com
Sat Sep 23 15:59:23 CDT 2006
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
More information about the Discuss
mailing list