[Top][All Lists]

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

Re: sed help

From: Joel J. Adamson
Subject: Re: sed help
Date: Tue, 05 Feb 2008 10:06:12 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Aaron Gray" <> 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 J. Adamson
Pediatric Psychopharmacology Research Unit
Massachusetts General Hospital
Boston, MA  02114
(617) 643-1432
(303) 880-3109

reply via email to

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