[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: htpasswd

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-05-14 23:24:35 CEST

On Wed, May 14, 2003 at 06:11:43PM +0100, Thom May wrote:
> > On Wednesday, May 14, 2003, at 12:58 PM, Paul L Lussier wrote:
> > > perl -i -pe 's/^<username>.*\n//g' htpasswd
>...
> well, the algorithm i'm just adding to htpasswd to do deletion uses
> "<username>:" as the string, so:
> perl -i -pe 's/^<username>:.*\n//g' htpasswd
> would be roughly equivalent.

Does Perl have most of the sed operations? Could it be something like:

perl -i -pe '/^<username>:/d' htpasswd

??

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 14 23:23:48 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.