Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!newspump.sol.net!news.mindspring.com!mindspring!www.nntp.primenet.com!nntp.primenet.com!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@anorak.coverform.lan (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Can't login as root What to do?
Date: 16 Oct 1996 00:54:02 +0100
Organization: Coverform Ltd.
Lines: 23
Sender: brian@awfulhak.demon.co.uk
Message-ID: <54186q$1lp@anorak.coverform.lan>
References: <53sno9$1392@news3.realtime.net>
<53t0ka$o42@prometheus.acsu.buffalo.edu>
Reply-To: brian@awfulhak.demon.co.uk
NNTP-Posting-Host: anorak.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
In article <53t0ka$o42@prometheus.acsu.buffalo.edu>,
pleung@cs.buffalo.edu (Patrick Leung) writes:
: Tushar Patel (tushar@ecpi.com) wrote:
>: I did some thing stupid.
:
>: I did "1,$ s/\bin/\bash/\/usr\/local/\bin/\bash/g"
:
: what in the world does that do ? ;-))
Produces a syntax error.
Some useful knowledge: The character after the 's' is used as a seperator,
it doesn't have to be a '/' !
%s,/bin/bash,/usr/local/bin/bash,g
would have the desired result. Same applies to sed.
--
Brian <brian@awfulhak.demon.co.uk>
<http://www.awfulhak.demon.co.uk/>
Don't _EVER_ lose your sense of humour....
.