Re: sed help

[email protected] (Joel J. Adamson)
Newsgroups gmane.comp.gnu.utils
Organization I need to put my ORGANIZATION here.
Message-ID <[email protected]>
"Aaron Gray" <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.