help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed help


From: Douglas O'Neal
Subject: Re: sed help
Date: Mon, 28 Jan 2008 12:40:11 -0500
User-agent: Thunderbird 2.0.0.6 (X11/20070829)

On 01/28/08 11:00, Aaron Gray wrote:
> "Dan C" <youmustbejoking@lan.invalid> wrote in message 
> pan.2008.01.28.15.18.00.21581@moria.lan">news:pan.2008.01.28.15.18.00.21581@moria.lan...
>> On Mon, 28 Jan 2008 14:48:19 +0000, Aaron Gray wrote:
>>
>>> I need to print out all instances of the string expression
>>> 'this\-\>[a-zA-Z_]+' from a C++ file on separate lines.
>> OK, go ahead.
> 
> ??? :)
> 
> AFAICT sed will not do this. Tried awk but could not fathom it.
> 
> Aaron
> 
> 

grep 'this->[a-zA-Z]*' file.cc | sed 's/.*\(this->[a-zA-Z]*\).*/\1/g'


reply via email to

[Prev in Thread] Current Thread [Next in Thread]