On Mon, Apr 12, 2010 at 04:36:04AM -0700, Federico Bruni wrote:
> Hi,
> I'm new to asciidoc.
>
> I wonder if it's possible to process more than one file using either
> asciidoc, or, better, a2x.
>
> [snip]
>
> There's a way to achieve what I want just using asciidoc?
> Or should I use some script? (in this case, please give some pointers
> to some examples, as I'm not confident at all with shell scripts...
> but I'm happy to learn..).
>
> Thank you,
> Federico

Hi,

I don't think it's possible with only a2x, but using find it
should be pretty simple:

    find . -name '*.txt' -exec a2x -f xhtml -D ./html '{}' \;

This will search recursively for all files match '*.txt' and
execute the a2x command on them. '{}' is replaced with the
filename, the trailing \; is necessary for find.

Hope this helps,
Simon
-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

Attachment: pgpPVlZT6i4tF.pgp
Description: PGP signature

Reply via email to