Merge multiple md files

md file:

First of all, let's popularize what is an md file. The full name of md is markdown, and markdown is also a markup language.  


type command

Suppose there are two ASCIIfiles: a.txtthe content is mountains and rivers ; b.txtthe content is unity .

Execute the command to b.txtsplice the content of a.txtthe above, and you can see a.txtthat the content has become 山河统一:

D:\>type a.txt
山河
D:\>type b.txt
统一
D:\>type b.txt >> a.txt

D:\>type a.txt
山河统一
D:\>type b.txt
统一

and so on


Merge steps:

Put the md files that need to be spliced ​​into a folder

  1. Open the command interface: Windows+Renter cmd

  2. Enter the location of the md file:cd+文件夹路径    如D:\data\mds

  3. Then enter the command: drive letter: such as D:

  4. Output the splicing result to the res.md file in the specified path   type *.md > 指定路径/mds.md

  5. [Do not specify the folder where the md file you want to synthesize is located, otherwise there will be infinite mergers, pay attention! !

    • No need to create mds.md empty file in advance
    • The splicing order of the md file needs to be manually adjusted (ascending, just like the following)

                        1.md

                        2.md

                        3.md        

Guess you like

Origin blog.csdn.net/weixin_51609730/article/details/126168681