Thread: I need help!!!
View Single Post
Old 11-03-2010, 06:01 AM   #12
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by st_albert View Post
so, how did you use grep to solve this problem?

and what OS?

ETA: my textmod fu is perl >> sed > awk, but that's because I'm too frikkin lazy to learn much at my age. But occasionally I do get curious. now's your chance!
I am not a GREP expert. I use PowerGREP from JGSOFT. I selected "FILE SECTIONING" and entered the following in the "SECTION SEARCH" pane.

Code:
<div class="stanza">.*?</div>
When I selected "PREVIEW" all of the lines within each stanza were displayed. Black Magic.

Below the "SECTION SEARCH" pane is a SEARCH AND REPLACE pane which allows modification of the data found.

So simple. Clever people these JSOFT folks. I've used their tools for years. I just have to be smart enough to use them. But they do have a great forum setup for help and information with a large following so I can ask my dumb questions.
crutledge is offline   Reply With Quote