我想结合一些文本文件,但带有标题(编辑:文件名)。理想情况下,类似
* a filename
contents of file
...
* another filename
contents of file
...
etc...
Run Code Online (Sandbox Code Playgroud)
我使用的是 Windows(不是 DOS),但可以访问 powershell、pandoc、emacs、cygwin 或您推荐的任何其他工具。(显然我是一个尝试组织模式的新手。)
我可以轻松地将它们全部放在一个文件夹中。但我想避免输入每个文件的名称。如果推荐一个bat文件,我没用过,但愿意学习。