public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Folder of markdown files
@ 2020-04-15  8:01 RAJ MANI
       [not found] ` <7346cbdd-c13a-490a-a72c-d68efbb1c422-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: RAJ MANI @ 2020-04-15  8:01 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 539 bytes --]

Hey guys

I actually have multiple folders containing multiple markdown files...how 
should i merge them into one markdown file


-- 
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/7346cbdd-c13a-490a-a72c-d68efbb1c422%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 896 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Folder of markdown files
       [not found] ` <7346cbdd-c13a-490a-a72c-d68efbb1c422-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-04-15  8:36   ` Ivan Lazar Miljenovic
  2020-04-15 19:20   ` John Gabriele
  1 sibling, 0 replies; 5+ messages in thread
From: Ivan Lazar Miljenovic @ 2020-04-15  8:36 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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

If you don't care about the order, you can use shell-level globbing.  That
might also work if they're named appropriately.  However, to be safest you
should explicitly write the order out.

On Wed, 15 Apr 2020 at 16:02, RAJ MANI <mitresh678-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

> Hey guys
>
> I actually have multiple folders containing multiple markdown files...how
> should i merge them into one markdown file
>
>
> --
> 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/7346cbdd-c13a-490a-a72c-d68efbb1c422%40googlegroups.com
> <https://groups.google.com/d/msgid/pandoc-discuss/7346cbdd-c13a-490a-a72c-d68efbb1c422%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
http://IvanMiljenovic.wordpress.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CA%2Bu6gbwyXkr_2dSxQaMzSn1GYcieZjQXKB4NDOKRc2NjDd70Zg%40mail.gmail.com.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Folder of markdown files
       [not found] ` <7346cbdd-c13a-490a-a72c-d68efbb1c422-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2020-04-15  8:36   ` Ivan Lazar Miljenovic
@ 2020-04-15 19:20   ` John Gabriele
       [not found]     ` <fab17dba-ed02-4c55-8516-3c95e6ea45d2-jFIJ+Wc5/Vo7lZ9V/NTDHw@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: John Gabriele @ 2020-04-15 19:20 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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

Hi,

Try this: https://github.com/uvtc/recursive-concat

-- John


On Wed, Apr 15, 2020, at 4:01 AM, RAJ MANI wrote:
> Hey guys
> 
> I actually have multiple folders containing multiple markdown files...how should i merge them into one markdown file
> 
> 
> 

> --
>  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/7346cbdd-c13a-490a-a72c-d68efbb1c422%40googlegroups.com <https://groups.google.com/d/msgid/pandoc-discuss/7346cbdd-c13a-490a-a72c-d68efbb1c422%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/fab17dba-ed02-4c55-8516-3c95e6ea45d2%40www.fastmail.com.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Folder of markdown files
       [not found]     ` <fab17dba-ed02-4c55-8516-3c95e6ea45d2-jFIJ+Wc5/Vo7lZ9V/NTDHw@public.gmane.org>
@ 2020-04-17 16:07       ` Dmitry Safronov
       [not found]         ` <800d44ba-0327-474b-8d86-67ce93a0758a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Safronov @ 2020-04-17 16:07 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1435 bytes --]


Hi,

What is the difference between your script and this command?

find . -type f -iname '*.md' | sort | xargs cat


On Wednesday, 15 April 2020 21:20:41 UTC+2, John Gabriele wrote:
>
> Hi,
>
> Try this: https://github.com/uvtc/recursive-concat
>
> -- John
>
>
> On Wed, Apr 15, 2020, at 4:01 AM, RAJ MANI wrote:
>
> Hey guys
>
> I actually have multiple folders containing multiple markdown files...how 
> should i merge them into one markdown file
>
>
>
> --
> 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/7346cbdd-c13a-490a-a72c-d68efbb1c422%40googlegroups.com 
> <https://groups.google.com/d/msgid/pandoc-discuss/7346cbdd-c13a-490a-a72c-d68efbb1c422%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/800d44ba-0327-474b-8d86-67ce93a0758a%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 4555 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Folder of markdown files
       [not found]         ` <800d44ba-0327-474b-8d86-67ce93a0758a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2020-04-19 23:01           ` John Gabriele
  0 siblings, 0 replies; 5+ messages in thread
From: John Gabriele @ 2020-04-19 23:01 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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

Hi,

Nice one-liner. The only difference I see (aside from .md vs .txt) would be that the Python script might be easier to extend if you later decided you wanted to do some other processing on the files found, or check their last-modified dates for some reason, or maybe use their filenames (or even first lines of each file) to create a log or makeshift table of contents or something.



On Fri, Apr 17, 2020, at 12:07 PM, Dmitry Safronov wrote:
> 
> Hi,
> 
> What is the difference between your script and this command?
> 
> find . -type f -iname '*.md' | sort | xargs cat
> 
> 
> On Wednesday, 15 April 2020 21:20:41 UTC+2, John Gabriele wrote:
>> Hi,
>> 
>> Try this: https://github.com/uvtc/recursive-concat
>> 
>> -- John
>> 
>> 
>> On Wed, Apr 15, 2020, at 4:01 AM, RAJ MANI wrote:
>>> Hey guys
>>> 
>>> I actually have multiple folders containing multiple markdown files...how should i merge them into one markdown file
>>> 
>>> 
>>> 

>>> --
>>> 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-...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7346cbdd-c13a-490a-a72c-d68efbb1c422%40googlegroups.com <https://groups.google.com/d/msgid/pandoc-discuss/7346cbdd-c13a-490a-a72c-d68efbb1c422%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/800d44ba-0327-474b-8d86-67ce93a0758a%40googlegroups.com <https://groups.google.com/d/msgid/pandoc-discuss/800d44ba-0327-474b-8d86-67ce93a0758a%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/03cbce74-7e03-40eb-9cd1-a372501beac6%40www.fastmail.com.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-19 23:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-15  8:01 Folder of markdown files RAJ MANI
     [not found] ` <7346cbdd-c13a-490a-a72c-d68efbb1c422-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-04-15  8:36   ` Ivan Lazar Miljenovic
2020-04-15 19:20   ` John Gabriele
     [not found]     ` <fab17dba-ed02-4c55-8516-3c95e6ea45d2-jFIJ+Wc5/Vo7lZ9V/NTDHw@public.gmane.org>
2020-04-17 16:07       ` Dmitry Safronov
     [not found]         ` <800d44ba-0327-474b-8d86-67ce93a0758a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2020-04-19 23:01           ` John Gabriele

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).