Sed howto
Dan Nelson
dnelson at allantgroup.com
Fri Oct 28 09:54:25 PDT 2005
In the last episode (Oct 28), Kvesdn Gbor said:
> I'm looking for a good sed howto that can be useful for contributing
> to ports collection. Replacing text is I'm especially interested in.
> Besides, could somebody explain me, when we use USE_REINPLACE= YES
> and ${REINPLACE_CMD}, and when we use just ${SED}?
Our sed can only do inplace edits in 4.6 and newer, so on older systems
the textproc/sed_inplace port gets installed and REINPLACE_CMD is set
to that binary. Use ${REINPLACE_CMD} when you modify a file inplace,
use ${SED} when you convert a "file.in" to a "file".
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list