Re: Multihomed Configuration
- From: Greg Wooledge <wooledg@xxxxxxxxxxx>
- Date: Thu, 14 Jun 2007 08:10:06 -0400
On Wed, Jun 13, 2007 at 11:34:53AM -0400, David Ford wrote:
sed -i -s "s/THE_PLACEHOLDER/$MYNEW/g" sshd_config
That requires GNU sed 4.0 or higher. Not everyone has that. It's
far better to use perl instead.
perl -pi -e "s/THE_PLACEHOLDER/$MYNEW/g" sshd_config
If you try your sed command on a non-GNU (or sufficiently old GNU)
system, you'll get an error:
pegasus:~$ sed -i s/hi/bye/ foo
sed: unknown option -- i
usage: sed script [-an] [file ...]
sed [-an] [-e script] ... [-f script_file] ... [file ...]
- References:
- Re: Multihomed Configuration
- From: mailbox@xxxxxxxxxxxxxx
- Re: Multihomed Configuration
- From: Bertram Scharpf
- Re: Multihomed Configuration
- From: David Ford
- Re: Multihomed Configuration
- Prev by Date: List mirroring and brokenness
- Next by Date: Problem with scp and SSH on Arch Linux
- Previous by thread: Re: Multihomed Configuration
- Next by thread: central management of ssh public keys
- Index(es):
Relevant Pages
|
|