Simon Bennett (simonb++at++wormald.com.au)
Wed, 20 Dec 1995 11:26:18 +1100 (EST)
> imgcopy -fsgi -Crgb <source Jpeg> <output rgb>
>
> you can do a batch convert using "foreach" as follows..
>
> foreach pic ( *.jpg )
> imgcopy -fsgi -Crgb $pic $pic.rgb
> end
>
> this will convert all the files with the given file extension and
> append .rgb onto the end ( Have not worked out how to replace the
> extention ( perhaps some else can suggest , but it works))
To substitute the extention in csh style shell, use $pic:r which will
remove .* from the variable.
i.e.
change:
imgcopy -fsgi -Crgb $pic $pic.rgb
to:
imgcopy -fsgi -Crgb $pic $pic:r.rgb
+----------------------------------------------------------------------------+
Simon Bennett simonb++at++wormald.com.au
Wormald Technology Advanced Systems Engineering Ph: +61 2 9981 0611 (x512)
Meeting - an event where you take minutes and waste hours.
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:10 PDT