public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Sukil Etxenike arizaleta <sukiletxe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: multiple html files
Date: Tue, 13 Sep 2022 22:32:33 +0200	[thread overview]
Message-ID: <82a6de71-9993-e2f4-1de8-b6f8a8ab8496@gmail.com> (raw)
In-Reply-To: <CADAJKhA1fgDgmVUVoAkzQDSqKm8e2Ytd=gNku+3tL8KXwTBtyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 19304 bytes --]

If powershell doesn't work, you could do:

1. Type:

```

for %D in (*.html) do (

echo %D >> list.txt

)

pandoc -o mi.epub < list.txt

```


I haven't tested this, but I think it should work. If it only takes one 
file, replace the newlines in list.txt with spaces.

Hth,

Sukil





El 13/09/2022 a las 22:21, BPJ escribió:
> That's some cmd.exe dumbness I guess. I'm afraid I haven't used 
> Windows for over a decade.
>
> Does anyone else know?
>
> Den tis 13 sep. 2022 18:21mr vicky <v.lonly007-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>
>     i am using this command
>     pandoc -o my.epub *.html
>     here is result
>     pandoc.exe: *.html: openBinaryFile: invalid argument (Invalid
>     argument)
>
>
>     On Tuesday, September 13, 2022 at 7:06:38 PM UTC+5 mr vicky wrote:
>
>         ok thank you very much :)
>
>         On Tuesday, September 13, 2022 at 6:02:54 PM UTC+5 BP wrote:
>
>             Attached. You will need perl >= 5.14. See the README.md file!
>
>             Den mån 12 sep. 2022 20:51mr vicky <v.lon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>
>                 will you tell me which rename script you are using?
>                 may be it will be more easy for me .
>                 Thank you very much for your help :)
>
>                 On Mon, 12 Sep 2022 at 11:40 pm, BPJ
>                 <mel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>                     That's right. You don't need to prefix anything to
>                     100 and up since you have less than 1000 files.
>
>                     Den mån 12 sep. 2022 19:33mr vicky
>                     <v.lon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>
>                         you means i rename like this
>                         001.html
>                         002.htnl
>                         003.html
>                         004.html
>                         005.html
>                         006.html
>                         007.html
>                         008.html
>                         009.html
>                         010.html
>
>                         check this 10th number is right ?
>                         and what about when i reach 100 number of file
>                         and then 200 number of file
>                         because my files are more than 400
>
>                         On Mon, 12 Sep 2022 at 10:09 pm, BPJ
>                         <b...-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org> wrote:
>
>                             just type *.html (star included) and it
>                             will be as if you had listed all the .html
>                             files in the current directory in
>                             alphabetical order.
>                             It doesn't have to be the current
>                             directory: if the files are in a
>                             subdirectory html then html/*.html will work.
>
>                             Note that you shouldn't just prepend a
>                             zero to all file names: you should prepend
>                             two zeroes to files 0.html through 9.html
>                             and one zero to files 10.html through
>                             99.html; the goal is for all file names to
>                             start in the same number of digits.
>
>                             Den mån 12 sep. 2022 18:56mr vicky
>                             <v.lon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>
>                                 i can use also
>                                 i have software which will rename all
>                                 files and ad 0 before numbers but tell
>                                 me will i write all files name in
>                                 command or just from file one to last
>                                 number file ?
>
>                                 On Mon, 12 Sep 2022 at 9:52 pm, BPJ
>                                 <b...-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org> wrote:
>
>                                     I would use a script to change the
>                                     names to zero-padded format and
>                                     then glob them.
>
>                                     Den mån 12 sep. 2022 16:49mr vicky
>                                     <v.lon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>
>                                         i have more than 100 html
>                                         files evan more than 400 html
>                                         files and my all files name
>                                         are like this 1.html, 2.html
>                                         3.html 4.html
>                                         so i can convert them all in
>                                         single epub ?
>                                         and i need to write all file
>                                         names in command ?
>                                         On Friday, September 9, 2022
>                                         at 6:01:30 PM UTC+5 BPJ wrote:
>
>                                             Generally you can just
>                                             list them on the command
>                                             line and pandoc will
>                                             concatenate them:
>
>                                             ``````shell
>                                             pandoc -o all.pdf -f html
>                                             html1 html2 html3
>                                             ``````
>
>                                             Globbing might work
>
>                                             ``````shell
>                                             pandoc -o all.pdf -f html
>                                             html*
>                                             ``````
>
>                                             but note that the shell
>                                             sorts "alphabetically" so
>                                             html10 sorts before html2!
>                                             You might want to zero-pad
>                                             the numbers in the file names:
>
>                                             html00, html01 .. html09,
>                                             html10 .. html99
>
>                                             so that there are two (or
>                                             three) digits in every
>                                             filename. I usually name
>                                             my files using three
>                                             digits with "gaps"
>                                             *before* the actual name:
>
>                                             000-frontmatter.md
>                                             010-preface.md
>                                             020-introduction.md
>                                             030-preliminaries.md
>                                             040-advanced.md
>
>                                             so that if I later want to
>                                             insert a chapter between
>                                             say the third and fourth
>                                             chapter I can number it
>                                             035-something.md and if I
>                                             want to insert a chapter
>                                             before that I can call it
>                                             033-whatever.md so that I
>                                             don't need to renumber
>                                             several files and globbing
>
>                                             ``````shell
>                                             pandoc -o all.pdf *.md
>                                             ``````
>
>                                             will still give me all the
>                                             files in correct order.
>
>                                             /bpj
>
>                                             Den fre 9 sep. 2022
>                                             12:31mr vicky
>                                             <v.lon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>
>                                                 hello
>                                                 i want to create pdf
>                                                 file from multiple
>                                                 html file. And the
>                                                 files name are like this
>                                                 html1
>                                                 html2
>                                                 html3
>
>                                                 i want to convert them
>                                                 in single pdf or epub file
>                                                 please can you explain
>                                                 me command and way of
>                                                 doing this ?
>
>                                                 Thank you
>
>                                                 -- 
>                                                 You received this
>                                                 message because you
>                                                 are subscribed to the
>                                                 Google Groups
>                                                 "pandoc-discuss" group.
>                                                 To unsubscribe from
>                                                 this group and stop
>                                                 receiving emails from
>                                                 it, send an email to
>                                                 pandoc-discus...@googlegroups.com.
>                                                 To view this
>                                                 discussion on the web
>                                                 visit
>                                                 https://groups.google.com/d/msgid/pandoc-discuss/caf40fb8-07cf-44a4-b0b6-732e8b5e9a5fn%40googlegroups.com
>                                                 <https://groups.google.com/d/msgid/pandoc-discuss/caf40fb8-07cf-44a4-b0b6-732e8b5e9a5fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
>                                         -- 
>                                         You received this message
>                                         because you are subscribed to
>                                         the Google Groups
>                                         "pandoc-discuss" group.
>
>                                         To unsubscribe from this group
>                                         and stop receiving emails from
>                                         it, send an email to
>                                         pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>                                         To view this discussion on the
>                                         web visit
>                                         https://groups.google.com/d/msgid/pandoc-discuss/2ec806d1-af88-4023-9d8b-fb2852935dfen%40googlegroups.com
>                                         <https://groups.google.com/d/msgid/pandoc-discuss/2ec806d1-af88-4023-9d8b-fb2852935dfen%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
>                                     -- 
>                                     You received this message because
>                                     you are subscribed to the Google
>                                     Groups "pandoc-discuss" group.
>                                     To unsubscribe from this group and
>                                     stop receiving emails from it,
>                                     send an email to
>                                     pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>                                     To view this discussion on the web
>                                     visit
>                                     https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhD84_%3DTbfO2hSQHpAnF3mbdTYc2fEG2CyumCPw9qC9Rsw%40mail.gmail.com
>                                     <https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhD84_%3DTbfO2hSQHpAnF3mbdTYc2fEG2CyumCPw9qC9Rsw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
>                                 -- 
>                                 You received this message because you
>                                 are subscribed to the Google Groups
>                                 "pandoc-discuss" group.
>                                 To unsubscribe from this group and
>                                 stop receiving emails from it, send an
>                                 email to
>                                 pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>
>                                 To view this discussion on the web
>                                 visit
>                                 https://groups.google.com/d/msgid/pandoc-discuss/CAH8MJH_e67u4YMwCEYpeBfDY09jDCvfduubLkRdRKRLqh8hbAg%40mail.gmail.com
>                                 <https://groups.google.com/d/msgid/pandoc-discuss/CAH8MJH_e67u4YMwCEYpeBfDY09jDCvfduubLkRdRKRLqh8hbAg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
>
>                             -- 
>                             You received this message because you are
>                             subscribed to a topic in the Google Groups
>                             "pandoc-discuss" group.
>                             To unsubscribe from this topic, visit
>                             https://groups.google.com/d/topic/pandoc-discuss/x3cVQPV2MWs/unsubscribe.
>                             To unsubscribe from this group and all its
>                             topics, send an email to
>                             pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>                             To view this discussion on the web visit
>                             https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhBme1EvsD6Lb0wYmBwx47AsPhpvu1Xp-ic12pnB_qM0GQ%40mail.gmail.com
>                             <https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhBme1EvsD6Lb0wYmBwx47AsPhpvu1Xp-ic12pnB_qM0GQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
>                         -- 
>                         You received this message because you are
>                         subscribed to the Google Groups
>                         "pandoc-discuss" group.
>                         To unsubscribe from this group and stop
>                         receiving emails from it, send an email to
>                         pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>
>                         To view this discussion on the web visit
>                         https://groups.google.com/d/msgid/pandoc-discuss/CAH8MJH9mZCoj2gkgBSfO-PAc4ptwjBPj%2BnuHxVppG%3DRC7jGi9g%40mail.gmail.com
>                         <https://groups.google.com/d/msgid/pandoc-discuss/CAH8MJH9mZCoj2gkgBSfO-PAc4ptwjBPj%2BnuHxVppG%3DRC7jGi9g%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
>                     -- 
>                     You received this message because you are
>                     subscribed to the Google Groups "pandoc-discuss"
>                     group.
>                     To unsubscribe from this group and stop receiving
>                     emails from it, send an email to
>                     pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>                     To view this discussion on the web visit
>                     https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhDaM033xRTbA%3DQ_TGHnOhCpS2-o0Fck8sDYZr3CfKSPhQ%40mail.gmail.com
>                     <https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhDaM033xRTbA%3DQ_TGHnOhCpS2-o0Fck8sDYZr3CfKSPhQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
>                 -- 
>                 You received this message because you are subscribed
>                 to the Google Groups "pandoc-discuss" group.
>                 To unsubscribe from this group and stop receiving
>                 emails from it, send an email to
>                 pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>
>                 To view this discussion on the web visit
>                 https://groups.google.com/d/msgid/pandoc-discuss/CAH8MJH8Kwyj4wa-%2Bfn8wN-H5%3DE%2B6Ut7UROiMWvu%3DpfhepTgAGQ%40mail.gmail.com
>                 <https://groups.google.com/d/msgid/pandoc-discuss/CAH8MJH8Kwyj4wa-%2Bfn8wN-H5%3DE%2B6Ut7UROiMWvu%3DpfhepTgAGQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
>     -- 
>     You received this message because you are subscribed to the Google
>     Groups "pandoc-discuss" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>     To view this discussion on the web visit
>     https://groups.google.com/d/msgid/pandoc-discuss/1d652de4-3624-46a1-a671-cc73ce6417d4n%40googlegroups.com
>     <https://groups.google.com/d/msgid/pandoc-discuss/1d652de4-3624-46a1-a671-cc73ce6417d4n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhA1fgDgmVUVoAkzQDSqKm8e2Ytd%3DgNku%2B3tL8KXwTBtyA%40mail.gmail.com 
> <https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhA1fgDgmVUVoAkzQDSqKm8e2Ytd%3DgNku%2B3tL8KXwTBtyA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/82a6de71-9993-e2f4-1de8-b6f8a8ab8496%40gmail.com.

[-- Attachment #2: Type: text/html, Size: 48929 bytes --]

  parent reply	other threads:[~2022-09-13 20:32 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-09 10:31 mr vicky
     [not found] ` <caf40fb8-07cf-44a4-b0b6-732e8b5e9a5fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-09-09 13:01   ` BPJ
     [not found]     ` <CADAJKhCJoJrJqj-VhrZ=amFPj0PwDT9XamEEp+LV=XXSRfLEnw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-12 14:48       ` mr vicky
     [not found]         ` <2ec806d1-af88-4023-9d8b-fb2852935dfen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-09-12 16:52           ` BPJ
     [not found]             ` <CADAJKhD84_=TbfO2hSQHpAnF3mbdTYc2fEG2CyumCPw9qC9Rsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-12 16:55               ` mr vicky
     [not found]                 ` <CAH8MJH_e67u4YMwCEYpeBfDY09jDCvfduubLkRdRKRLqh8hbAg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-12 17:09                   ` BPJ
     [not found]                     ` <CADAJKhBme1EvsD6Lb0wYmBwx47AsPhpvu1Xp-ic12pnB_qM0GQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-12 17:32                       ` mr vicky
     [not found]                         ` <CAH8MJH9mZCoj2gkgBSfO-PAc4ptwjBPj+nuHxVppG=RC7jGi9g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-12 18:00                           ` Daniel Staal
2022-09-12 18:40                           ` BPJ
     [not found]                             ` <CADAJKhDaM033xRTbA=Q_TGHnOhCpS2-o0Fck8sDYZr3CfKSPhQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-12 18:50                               ` mr vicky
     [not found]                                 ` <CAH8MJH8Kwyj4wa-+fn8wN-H5=E+6Ut7UROiMWvu=pfhepTgAGQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-13 13:02                                   ` BPJ
     [not found]                                     ` <CADAJKhCmsHkjbgG+_O9dymRRr0hcO3ViEKLL78ekK+ObWV6srw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-13 14:06                                       ` mr vicky
     [not found]                                         ` <1dd12510-187f-429c-b976-1220427aa2ben-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-09-13 16:20                                           ` mr vicky
     [not found]                                             ` <1d652de4-3624-46a1-a671-cc73ce6417d4n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-09-13 20:21                                               ` BPJ
     [not found]                                                 ` <CADAJKhA1fgDgmVUVoAkzQDSqKm8e2Ytd=gNku+3tL8KXwTBtyA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-13 20:32                                                   ` Sukil Etxenike arizaleta [this message]
     [not found]                                                     ` <82a6de71-9993-e2f4-1de8-b6f8a8ab8496-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-09-14  7:32                                                       ` mr vicky
     [not found]                                                         ` <4af1b08a-856b-43de-b473-476680e4236dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-09-14  8:05                                                           ` Sukil Etxenike arizaleta
     [not found]                                                             ` <d2f43247-527f-b10a-7774-7f5837ccf6ac-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-09-14  9:27                                                               ` mr vicky
     [not found]                                                                 ` <7e388223-7e02-419c-960d-429c29287cb6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-09-14 11:53                                                                   ` Sukil Etxenike arizaleta
     [not found]                                                                     ` <f561266f-ad25-857c-73d0-f437df280970-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-09-14 12:34                                                                       ` mr vicky
     [not found]                                                                         ` <6be3dfec-e061-07a8-1add-05415105c955@gmail.com>
     [not found]                                                                           ` <CAH8MJH92dG33zbnzHACrNtCMvAniT-k5TgMtehHqQedvbTmuPw@mail.gmail.com>
     [not found]                                                                             ` <660dfc41-9970-842d-5387-1ccbcae1a222@gmail.com>
     [not found]                                                                               ` <CAH8MJH-nXQefsHvWvcdf039t35KALwAh4ihLhHfAW+hU4y-fFQ@mail.gmail.com>
     [not found]                                                                                 ` <CAH8MJH-nXQefsHvWvcdf039t35KALwAh4ihLhHfAW+hU4y-fFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-14 14:38                                                                                   ` Sukil Etxenike arizaleta
     [not found]                                                                                     ` <00f256e2-d010-4a6d-f9c4-a1b45e1400a3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-09-15  9:22                                                                                       ` mr vicky
     [not found]                                                                                         ` <CAH8MJH89+zqPN6q2rjFNi_TUGKW+hF+hYi=dzCScyJ_oRSNDmA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-15 11:30                                                                                           ` Sukil Etxenike arizaleta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=82a6de71-9993-e2f4-1de8-b6f8a8ab8496@gmail.com \
    --to=sukiletxe-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).