Thanks, I found a "head" util in GNU coreutils. I got it working to do what I want. :)

On Monday, March 29, 2021 at 1:50:40 PM UTC-4 John MacFarlane wrote:

perl -ne "print if $. <= 1450"

CR <chuc...-Wuw85uim5zDR7s880joybQ@public.gmane.org> writes:

> I'm looking for a head util for Windows 10 cmd line right now.
>
> On Monday, March 29, 2021 at 8:55:18 AM UTC-4 Jeremy Theler wrote:
>
>> What about some UNIX philosophy here and do one thing well at a time?
>>
>> head -n1455 input.md | pandoc
>>
>>
>>
>> On Mon, 2021-03-29 at 05:10 -0700, CR wrote:
>> > I use Pandoc 2.7.2 on Windows 10 in a command window. I make EPUB
>> > books from markdown files mainly. I'm getting out of memory errors
>> > form this one large .md file that is 1.3MB in size and I'm having a
>> > hard time finding out which line is giving me problems. The exact
>> > error is:
>> >
>> > pandoc.exe: getMBlocks: VirtualAlloc MEM_COMMIT failed: The paging
>> > file is too small for this operation to complete.
>> > ERROR from pandoc.
>> >
>> > My source files are on a flash drive with about 1.6GB of free space
>> > left. Is the default paging file on the same drive as the source
>> > file? That may be my problem.
>> >
>> > Can we have an option in Pandoc to stop processing a source file at a
>> > certain line? Like:
>> > -stopline:1455
>> >
>> > is where Pandoc would stop reading the source file at line 1455. What
>> > this means is this would only work for the first source file in a
>> > list of files on the command line. I mainly use single source files
>> > when making an EPUB file.
>> >
>> > One option when multiple input files are specified would be to
>> > specify the input file and line like this on the command line:
>> > -stopline:file2.md:1455
>> >
>> > This means Pandoc would read file1.md, and only read up to line 1455
>> > in file2.md and then close the EPUB normally to make a valid EPUB
>> > file.
>> >
>> > Thanks!
>> >
>> > p.s. I have already removed all asterisks from my source file
>> > thinking Pandoc does not look for an even number of asterisks in a
>> > "paragraph" before it processes it and I still have problems.
>> >
>> > --
>> > 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/f73de601-a3be-4ba8-80ce-60ea859eb401n%40googlegroups.com
>> > .
>> >
>>
>>
>
> --
> 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/b7124b44-4b07-479d-8205-cfded2aa5f65n%40googlegroups.com.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a842c5d1-cd2c-498d-9945-307cf5e85c59n%40googlegroups.com.