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:
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
>>
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
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
>>>'
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
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
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.
>
&
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: [
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