On Thursday 26 July 2007, mal content wrote:
> I have a large number of xcf files that have a section of
> text embedded in them. Is there a tool or method available
> to safely and reliably modify this text (replace it with
> other text) from the shell, or some other interface that
> doesn't require me to open 100 or so files in Gimp*?
> I'd ideally like to be able to do something along the lines
> $ for f in *.xcf; do xcf_text_replace $layer_num file.txt; done
> * they are huge files, I doubt my hardware could cope.
> Gimp-user mailing list
> Need personalized email and website? Look no further. It's easy
> with Doteasy $0 Web Hosting! Learn more at www.doteasy.com
If you are on a Linux or similar platform something along the lines of
awk or sed could be possible approaches. I quote from an old
"The advantages of sed are that it can apply the same editing comands
to many files; it can edit a large file quickly; and it can readily
be used with pipes."
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Gimp-user mailing list