Re: help for sed

2002-02-06 Thread John W. Krahn
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.

Re: help for sed

2002-02-06 Thread Bill Akins
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

Re: help for sed

2002-02-06 Thread Michael Kelly
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

help for sed

2002-02-06 Thread r p
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