bug-grep
[Top][All Lists]
Advanced

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

Simple Grep Command?


From: Newbie407
Subject: Simple Grep Command?
Date: Wed, 16 Sep 2009 13:49:14 -0700 (PDT)

I'm new to Grep.  I'm using Text Wrangler.

I want to search an entire doc for a pattern.  If I find that pattern, I
want to do a search and replace within the pattern, then keep looking for
the pattern again.

Specifically, I'm looking for the letters "LEC" followed by variable text
and ending with either a carriage return or the letters "ulty."  If I find
it, I want to change all the space characters within the found string into
something else, say "zzzz."  

I can figure out how to find the pattern, and I can figure out how to make
the replacement, but I can't figure out how to do it within the pattern
only.

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Simple-Grep-Command--tp25480399p25480399.html
Sent from the Gnu - Grep mailing list archive at Nabble.com.





reply via email to

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