Retrieving backreferences
- From: "Tom" <tomlobato@xxxxxxxxx>
- Date: 4 Sep 2006 06:25:17 -0700
Hi!
Well, I can use cut or awk for retrieving some especifics wanted
pieces of texts. But I didnt find how to retrieve a pattern match to
use in the next shell command. In Perl would be
$matched = $1 if ($string =~ /a(.)c/);
I saw egrep and sed support backreference, but I don't know if such
references stay available out of the expression.
Some hint?
Tom
.
- Follow-Ups:
- Re: Retrieving backreferences
- From: Ed Morton
- Re: Retrieving backreferences
- Prev by Date: Retrieving backreferences
- Next by Date: Re: SCRIPT TO GET CPU IDLE TIME
- Previous by thread: Re: Retrieving backreferences
- Next by thread: Re: Retrieving backreferences
- Index(es):
Relevant Pages
|