Re: Multihomed Configuration
- From: David Ford <david@xxxxxxxxxxxxx>
- Date: Wed, 13 Jun 2007 11:34:53 -0400
Bertram Scharpf wrote:
Hi,sed -i -s "s/THE_PLACEHOLDER/$MYNEW/g" sshd_config
Am Freitag, 08. Jun 2007, 16:56:34 +0000 schrieb mailbox@xxxxxxxxxxxxxx:
Perhaps you can have a script to do it for you.
# cat sshd_config | sed -s 's/THE_PLACEHOLDER/$MYNEW/g' > sshd_config
or something. figure it out - it can be done.
Sorry, this is dangerous. Use an in-place substituting
language instead.
perl -i -pe 's/x/y/g' sshd_conf
ruby -i -pe 'gsub /x/, "y"' sshd_conf
Bertram
- Follow-Ups:
- Re: Multihomed Configuration
- From: Greg Wooledge
- Re: Multihomed Configuration
- References:
- Re: Multihomed Configuration
- From: mailbox@xxxxxxxxxxxxxx
- Re: Multihomed Configuration
- From: Bertram Scharpf
- Re: Multihomed Configuration
- Prev by Date: central management of ssh public keys
- Next by Date: List mirroring and brokenness
- Previous by thread: Re: Multihomed Configuration
- Next by thread: Re: Multihomed Configuration
- Index(es):