Just a small script for anyone who wants it. Running it in terminal allows
you to search all files in a directory (recursively) and replaces a string
with another string. It also creates a backup (FILENAME.save) of any file
changed. I'm using it to replace object names when needed.

Credit goes to this person who did the real thinking, I just scripted it
because I didn't want to memorize the text of what he came up with:
http://forums.devshed.com/unix-help-35/unix-find-and-replace-text-within-all-files-within-a-146179.html


Joel

Attachment: perl_string_replace.sh
Description: Bourne shell script

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to