I am trying to take all files from a specific repository I have on GitHub and turn them into PDF's. I have read and seen an example here
However, I am still a bit confused on how to go about doing this. I have to take all my files and turn them into a single PDF file to upload it to a site for college.
I am not extremely familiar with UNIX commands and I was trying to do the following:
for i in *.lua; do echo "$i"; echo "---"; cat "$i"; echo ; done > result.pdf
Then I was going to take all the pdfs and merge them together, but I was hoping there was a better way to go about doing this. I'm specifically dealing with only .lua
and .md
file-extensions.
I personally believe this can be done with the use of some UNIX commands, but as mentioned, I am not familiar with them.
To summarize, my main objective is to take a series of files located on a repository on Github and merge them into one PDF file. Even obtaining multiple PDF files is ok is that is the best that can be done. Even a .word
file format is good enough.
Operating System: OSX or Windows 7 64-bit