POV-Ray : Newsgroups : povray.general : Serializing a dictionary : Re: Serializing a dictionary Server Time
12 Jul 2025 21:51:52 EDT (-0400)
  Re: Serializing a dictionary  
From: jr
Date: 7 Jul 2025 11:45:00
Message: <web.686bea5ce086e5d13ecaab5e6cde94f1@news.povray.org>
hi,

"Bald Eagle" <cre### [at] netscapenet> wrote:
> ...
> I have also (mostly) trained myself to type the opening AND closing parts first,
> and then fill in the space between.

very good practice/advice.  fwiw, a suitable editor helps, for instance using
'vim' makes jumping between opening and closing brace/parenthesis/bracket a
single (shifted) key press.


> ...
> Maybe someone can suggest a command-line script to grep opening and closing
> parentheses and give a count.

not totally what you're after, you only get the line count of occurrence, but,
in practice, the opening/closing counts should be the same.  (no time to write a
script, sorry :-))

  $ grep -ce '[{]' myscene.pov
  $ grep -ce '[}]' myscene.pov


> Might be able to paste it into a spreadsheet and get a count that way.

do you use 'sc(1)' ?


regards, jr.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.