According to omer ansari: While burning my CPU.
>
> awk might suit ur needs.
It certanly might, however we still dont realy know what the origanal poster
wants to do, he talks about "regexp" but would not "grep -e" expression" do
the same, or there abouts.??
Something like the following.
An example, the following line in a file;
The SCC/ESCC driver can support any mix of SCC and ESCC chips
Now suppose we only want to get the word after SCC/ESCC, we would use;
grep -e "SCC/ESCC" filename | awk '{print $3}'
That will produce the word "driver" for each and every match because its the
3rd word in the line matched by grep -e, -e = expression enclosed in " ".
Of course there are many ways to skin a cat and this is a shot in the dark
against whats being called "International English".!!!
> ----- Original Message -----
> From: Pizi <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 22, 1999 4:53 PM
> Subject: grep for line.
>
>
> > Than for advice on "cut" utility, it is good, but is only for cutind
> > line with hard positioned information. When desired information is on
> > diferent positions i need something what is searching by regexp.
> > I'm able write this in perl, but i want do it only by bash script.
> >
> >
> >
>
--
Regards Richard.
[EMAIL PROTECTED]