POV-Ray : Newsgroups : povray.off-topic : Use case : Re: Use case Server Time
29 Jul 2024 14:11:40 EDT (-0400)
  Re: Use case  
From: Invisible
Date: 26 Aug 2011 03:55:10
Message: <4e57515e$1@news.povray.org>
>> As best as I can tell, it's a line-based file format, where each line
>> contains a key/value pair. Basically if I use the tool and it changes
>> the line that says "mode=7" to read "mode=9", then I want to make that
>> change to all the files in the set. Similarly if it adds a new line or
>> removes an existing one.
>>
>> I imagine you can probably do it somehow using diff and patch. But
>> those aren't usually present on Windows. (I gather Emacs has a special
>> mode for viewing the output from diff or something like that...
>> Presumably that only works on Unix though.)
>
> Install perl. I don't remember perl at all, but it's probably a simple
> one-liner. A few switches on the command line and a simple regex
> substitution should do the trick. The right tool for the job, plain and
> simple. And yes, it's available for windows in a standard windows
> install package.

The right tool for the job would obviously be some sort of file 
comparison tool - which Perl isn't.


Post a reply to this message

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