Sign In/My Account | View Cart  
advertisement

Article:
 Moving to OpenOffice: Batch Converting Legacy Documents
Subject: great
Date: 2006-10-24 08:15:10
From: meatron

Just what I was looking for. I have one problem though, how would I batch convert several documents, the "*" wildcard doesn't seem to work. On linux>


openoffice.org-2.0 -invisible "macro:///Standard.MyConversions.SaveAsOOO($PWD/*.doc)"


*.doc is the problem, specifying the file name converts ok
I have a small script preparing a directory structure and moving the files into the appropriate folders. It would help a lot if the conversion was included. Any help is very appreciated, thanks in advance.


Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • great
    2006-10-24 08:40:40 Bob DuCharme

    I haven't had a chance to try this on a Linux box. Have you tried a backslash before the asterisk? If that doesn't work, I'd try to find an OOo mailing list with Linux users and ask there.

    • great
      2006-10-24 09:30:18 meatron

      Thanks for the quick answer. The backslash doesn't do. I'll post if I find a solution. Once again, really a very useful tool, a month ago I was asking for something like this on OO forums.
      Best regards

      • great
        2006-10-24 14:19:20 meatron

        a simple for loop does the trick


        for i in $(find ./ -name ".doc"); do openoffice.org-2.0 -invisible "macro:///Standard.MyConversions.SaveAsOOO($PWD/$i)"; done


        • great
          2006-10-24 14:56:29 meatron

          ooops forgot the *


          so now for real
          for i in $(find ./ -name "*doc"); do openoffice.org-2.0 -invisible "macro:///Standard.MyConversions.SaveAsOOO($PWD/$i)"; done


Sponsored By: