You can use sed at the command line.
cat file|sed -e '[[/address/,]/toaddress/]s/this/that/'
address can either be a number like: cat /etc/passwd|sed -e '1s/root/toor/'
or a regex it self like: cat /etc/passwd|sed -e '/^.oot/,/bin/s/tcsh/bash/'
you can add g after the last / for global substitutions, i.e
same word multiple times on one line.

Ben-Nes Michael <[EMAIL PROTECTED]> wrote:
> Hi All
> 
> Any one know about good search/replace (text) that accept regexp as pattern
> ?
> 
> the one that im using is rpl (great) but it does not support regexp :(
> 
> --------------------------
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> http://sites.canaan.co.il
> --------------------------
> 
> 
> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

-- 
http://www.rshell.org
Join #shellcode on EFnet.
[EMAIL PROTECTED]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to