[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pre-release
Andrew D. Hwang wrote:
> [...] The solution is to seek-and-replace:
>
> #!/bin/sh
> for file in *.xp
> do
> mv $file $file.tmp &&
> sed 's/ pair / triple /g' $file.tmp > $file
> done
>
> (The spaces before and after ensure that the string "pair" embedded in
> another symbol won't be replaced; this isn't wholly robust, but may also
> be unnecessary, depending on the existing names in the file.)
Unfortunately, 'pair' often begins the line ...
perl -pi.bak -e 's/(^|\s)pair(\s)/$1triple$2/g' *.xp
should do the trick on well-formatted code.
[...]
> [crop/clip]
For what is worth, Pov-Ray uses 3D `Clipped_By' ; ImageMagick uses
2D crop.
--
Jacques L'helgoualc'h