R p wrote:
>
> hi everyone.
Hello,
> i am trying to use sed in order to change all my batch
> script.
Sorry, I'll have to show you a Perl solution. :-)
> the pb is:
>
> i have the following batch:
> @echo on
> TIMETHIS.exe k:\Validation\Soft\abc.exe
> k:\test_1.sct k:\Validation\PlugIn\abc.
I believe Perl has all of the funtionality of sed so why not use the substr() function?
I have not tested it and I'm sure others here can do this in one line, but couldn't
you do something like this?
if ($string =~ / >>/i) {
$ll = (length($string) - 3);
$string = substr($string, 1, $ll);
}
Wit
On 2/6/02 6:58 AM, r p <[EMAIL PROTECTED]> wrote:
> hi everyone.
>
> i am trying to use sed in order to change all my batch
> script.
Is it just me, or is this a Perl list, not a sed list?
--
Michael Kelly
[EMAIL PROTECTED]
http://www.jedimike.net
--
To unsubscribe, e-mail: [EMAIL PROTECT
hi everyone.
i am trying to use sed in order to change all my batch
script.
the pb is:
i have the following batch:
@echo on
TIMETHIS.exe k:\Validation\Soft\abc.exe
k:\test_1.sct k:\Validation\PlugIn\abc.link >>
k:\test_1.log
@echo off
exit
i want to delet