Skip to content

Remove trailing space from opl node search egrep examples#21

Merged
joto merged 1 commit into
osmcode:masterfrom
SomeoneElseOSM:remove_rogue_egrep_space
May 31, 2026
Merged

Remove trailing space from opl node search egrep examples#21
joto merged 1 commit into
osmcode:masterfrom
SomeoneElseOSM:remove_rogue_egrep_space

Conversation

@SomeoneElseOSM
Copy link
Copy Markdown

A trailing space makes sense for most opl line elements but not for the node list of ways, since that doesn't have a trailing space before the linefeed.

Testing:

ajtown@dell5000:~/temp$ egrep '^w' rutland-latest.osm.opl | egrep 'N(n[0-9]+),.*\1 ' | wc
      0       0       0

(before change)

ajtown@dell5000:~/temp$ egrep '^w' rutland-latest.osm.opl | egrep 'N(n[0-9]+),.*\1' | wc
  10151   91359 2394064

(after change)

A trailing space makes sense for most opl line elements but not
for the node list of ways, since that doesn't have a trailing
space before the linefeed.
@joto joto merged commit 48f215a into osmcode:master May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants