Re: Chanching a string inside a file

2005-12-13 Thread MARG
Hi John, I finally made it: # perl -pi -e's~^(PATH=\$PATH:\$HOME/bin)~$1:/usr/local/httpd/bin~' .bash_profile Thank you so much. If it weren't you puting me in the right tracks, i'd never make it. Warm Regards, MARG John W. Krahn wrote: > MARG wrote: > >>John W. Krahn wrote: >> >>>MARG wrote:

Re: Chanching a string inside a file

2005-12-13 Thread John W. Krahn
MARG wrote: > John W. Krahn wrote: >>MARG wrote: >> >>>John W. Krahn wrote: >>> MARG wrote: >I'm trying to change the string in .bash_profile: >PATH=$PATH:/home/bin > >to >PATH=$PATH/home/bin:/usr/local/httpd/bin > >I'm using the following: >perl -pi~ -e >>

Re: Chanching a string inside a file

2005-12-13 Thread MARG
Hi John, No good. The file remains unchanged :( But thank you anyway. Warm Regards, MARG John W. Krahn wrote: > MARG wrote: > >>John W. Krahn wrote: >> >>>MARG wrote: >>> >>> I'm trying to change the string in .bash_profile: PATH=$PATH:/home/bin to PATH=$PATH/home/bin:/usr

Re: Chanching a string inside a file

2005-12-13 Thread John W. Krahn
MARG wrote: > John W. Krahn wrote: >>MARG wrote: >> >>>I'm trying to change the string in .bash_profile: >>>PATH=$PATH:/home/bin >>> >>>to >>>PATH=$PATH/home/bin:/usr/local/httpd/bin >>> >>>I'm using the following: >>>perl -pi~ -e 's/PATH=$PATH/home/bin/PATH=$PATH/home/bin:/usr/local/httpd/bin >>>'

Re: Chanching a string inside a file

2005-12-13 Thread MARG
Hi John, Thank you for your ansewer. I don't have any error anymore, but the file remains unchanged :( Any ideas ? Warm Regards, MARG John W. Krahn wrote: > MARG wrote: > >>Hi, > > > Hello, > > >>I'm trying to change the string in .bash_profile: >>PATH=$PATH:/home/bin >> >>to >>PATH=$PATH

Re: Chanching a string inside a file

2005-12-13 Thread John W. Krahn
MARG wrote: > Hi, Hello, > I'm trying to change the string in .bash_profile: > PATH=$PATH:/home/bin > > to > PATH=$PATH/home/bin:/usr/local/httpd/bin > > I'm using the following: > perl -pi~ -e 's/PATH=$PATH/home/bin/PATH=$PATH/home/bin:/usr/local/httpd/bin > ' .bash_profile > > but i'm gettin

Re: Chanching a string inside a file

2005-12-13 Thread MARG
errors" Warm Regards, MARG > > > -Original Message- > From: MARG [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 13, 2005 4:18 PM > To: beginners@perl.org > Subject: Chanching a string inside a file > > > > but i'm getting a lot of errors. > &

RE: Chanching a string inside a file

2005-12-13 Thread Timothy Johnson
What might be the errors? -Original Message- From: MARG [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 4:18 PM To: beginners@perl.org Subject: Chanching a string inside a file but i'm getting a lot of errors. What might be wrong ? -- To unsubscribe, e-mail: [

Chanching a string inside a file

2005-12-13 Thread MARG
Hi, I'm trying to change the string in .bash_profile: PATH=$PATH:/home/bin to PATH=$PATH/home/bin:/usr/local/httpd/bin I'm using the following: perl -pi~ -e 's/PATH=$PATH/home/bin/PATH=$PATH/home/bin:/usr/local/httpd/bin ' .bash_profile but i'm getting a lot of errors. What might be wrong ? A