Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Multihomed Configuration |
|---|---|
| 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 ...]
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | List mirroring and brokenness, David Ford |
|---|---|
| Next by Date: | Problem with scp and SSH on Arch Linux, Stijn Segers |
| Previous by Thread: | Re: Multihomed Configuration, David Ford |
| Next by Thread: | central management of ssh public keys, Jimmy Stewpot |
| Indexes: | [Date] [Thread] [Top] [All Lists] |