List Info

Thread: Re: sed help




Re: sed help
country flaguser name
United States
2008-02-05 09:06:12
"Aaron Gray" <ang.usenetgmail.com> writes:

> I need to print out all instances of the string
expression 
> 'this->[a-zA-Z_]+' from a C++ file on separate
lines.

I'm having a little dejavu here:

You want grep, instead of sed.  Sed is for editing, grep is
for
matching.  You also want to read a book on shell scripting.

Joel

-- 
Joel J. Adamson
Biostatistician
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )