POV-Ray : Newsgroups : povray.general : Associating files with PovRay : Re: Associating files with PovRay Server Time
10 Aug 2024 23:26:33 EDT (-0400)
  Re: Associating files with PovRay  
From: Nieminen Juha
Date: 3 Dec 1999 08:12:53
Message: <3847c1d5@news.povray.org>
Bill DeWitt <the### [at] earthlinknet> wrote:
:     Then search all .pov, .inc and .mac files for ".mac" and replace it with
: ".mcr" I've got a multiple search and replace utility, but it only does open
: files and I have so many directories.... wah!

  If he was using unix (and zsh) he could write something like:

for FILE (`find . -name '*.pov'`) { perl -pe 's/(#include ".*)\.mac"/\1.mcr"/g' $FILE
> $FILE.tmp; mv $FILE.tmp $FILE }

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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