OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [patch] sed(1) - edit files in-place

From: Garance A Drosihn (drosihrpi.edu)
Date: Mon Oct 03 2005 - 14:22:20 CDT


At 6:17 PM +0000 10/3/05, Christian Weisgerber wrote:
>Joerg Sonnenberger <joergbritannica.bec.de> wrote:
>
> > Let me add two comments about this specific feature. The first is
> > that it is very handy for patching third party source code, since
> > it saves the hassle of reverting to ed or having to copy the files
> > first.
>
>In the ports tree we just use perl -i.

In FreeBSD-land, this feature was added to 'sed' just so we could
remove one dependency on perl. If you do not need perl for anything
else, then it's a rather large package to require just so you can do
'-i' edits.

--
Garance Alistair Drosehn = gadgilead.netel.rpi.edu
Senior Systems Programmer or gadfreebsd.org
Rensselaer Polytechnic Institute or drosihrpi.edu