On Tue, 11 Jun 2002, Jesse Angell wrote:

> where do you put the filename in that script

It's a pipe, like my last solution.

cat httpd.conf | perl -e ' (code below) ' > httpd.conf.new

> ----- Original Message ----- 
> From: "David Kramer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 10, 2002 11:55 PM
> Subject: [REDHAT] Re: [REDHAT] Re: [REDHAT] Shell Scripting
> 
> 
> > On Mon, 10 Jun 2002, Jesse Angell wrote:
> > 
> > > That doesnt look right..
> > >  There are many users. I want to delete just that one users
> > 
> > OK, you could have been more specific.  Never fear.
> > 
> > perl -e '
> > while(<>) 
> > {
> > $Line .= $_
> > } 
> > $Line =~ s!<VirtualHost.*'${user}'.*?<\/VirtualHost>!!s;
> > print $Line;
> > '

-------------------------------------------------------------------
DDDD   David Kramer                   http://thekramers.net
DK KD  
DKK D  
DK KD  Pretense and adversity are inversely proportional;
DDDD   Adversity reveals the true nature of all things.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to