[Therion] th2 empty objects
Martin Sluka
martinsluka at mac.com
Wed Mar 15 09:52:52 CET 2017
This one?
Search/replace grep:
^\s*(w+) \w+(-?)\w*\s+end\1
m.s.
> 15. 3. 2017 v 9:03, Bruce Mutton via Therion <therion at speleo.sk>:
>
> 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 <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 <mailto:therion at speleo.sk>>
> Cc: Martin Sluka <martinsluka at mac.com <mailto: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.
> _______________________________________________
> Therion mailing list
> Therion at speleo.sk <mailto:Therion at speleo.sk>
> https://mailman.speleo.sk/listinfo/therion <https://mailman.speleo.sk/listinfo/therion>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20170315/4367beed/attachment.htm>
More information about the Therion
mailing list