Re: search/replace with regexp

2001-05-30 Thread Yotam Medini
On Wed, May 30, 2001 at 10:13:29AM +0300, Ben-Nes Michael wrote: > Any one know about good search/replace (text) that accept regexp as pattern? Python has an 're' package and you can get is source - it is probably here: -rw-r--r-- jhylton/jhylton 15155 Python-2.0/Modules/regexmodule.c -rw-r

Re: search/replace with regexp

2001-05-30 Thread rcs
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 substitutio

Re: search/replace with regexp

2001-05-30 Thread Ben-Nes Michael
Michael" <[EMAIL PROTECTED]> Cc: "linux ILUG" <[EMAIL PROTECTED]> Sent: Wednesday, May 30, 2001 10:50 AM Subject: Re: search/replace with regexp > "Ben-Nes Michael" <[EMAIL PROTECTED]> writes: > > > Any one know about good search/replace (text) t

Re: search/replace with regexp

2001-05-30 Thread Oleg Goldshmidt
"Ben-Nes Michael" <[EMAIL PROTECTED]> writes: > Any one know about good search/replace (text) that accept regexp as pattern > ? Off-line. i.e. script-based? I will be happy to learn a new tool. FWIW, up to now, I used a simple wrapper for ed: #!/bin/bash tmp_script=/tmp/subst.ed.$$ PROGNAME=$

search/replace with regexp

2001-05-30 Thread Ben-Nes Michael
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.