[Therion] th2 empty objects

Bruce Mutton bruce at tomo.co.nz
Wed Mar 15 09:03:27 CET 2017


That grep works pretty well, I have run it over a few of my projects, and am
now happy enough to let it automatically replace all the strings found with
a null string. 

(I use version control, so can easily back out of any disasters).

 

However I notice that it will not pick up hyphenated strings such as;

 

line floor-step

endline

 

Any clever person figure  out how to make it find both hyphenated and
non-hyphenated empty objects.

 

I'll add something to the wiki in due course.

 

Bruce

 

From: Therion [mailto:therion-bounces at speleo.sk] On Behalf Of Martin Sluka
via Therion
Sent: Thursday, 9 March 2017 10:29 PM
To: List for Therion users <therion at speleo.sk>
Cc: Martin Sluka <martinsluka at mac.com>
Subject: Re: [Therion] th2 empty objects

 

.

 

I made a simple grep patter to find such "null lines" in th2 files:
 
I have try grep search/replace
 
^\s*(\w+) \w+\s+end\1
 
and it looks it works

 

m.s.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20170315/9197ed9d/attachment.htm>


More information about the Therion mailing list