Bertram Scharpf wrote:
Hi,

Am Freitag, 08. Jun 2007, 16:56:34 +0000 schrieb [EMAIL PROTECTED]:
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

  • Multihomed ... Nirmal Babu Puliyadi Suriya Kumar -X (npuliyad - HCL at Cisco)

Reply via email to