Re: Multihomed Configuration



Bertram Scharpf wrote:
Hi,

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

sed -i -s "s/THE_PLACEHOLDER/$MYNEW/g" sshd_config