Answer the question
In order to leave comments, you need to log in
Where did I go wrong in the sh script?
Here is the line in the update.sh file:
find -name "*.md" -exec touch time.md.html \; -exec cat theme/header.html >> time.md.html \ ; -exec pandoc -t html {} >> time.md.html \; -exec cat theme/footer.html >> time.md.html \; -exec cp time.md.html blog/{}.html \; -exec rm time.md.html \;
Answer the question
In order to leave comments, you need to log in
Replace the last 2 commands with mv (move) and you will see an interesting result. At the output, get 1 file in which all the contents will be sequentially added. and a certain number of errors that No such file or directory. I think that the handle of the remote file is still with find`a Modify the command so that different files are created, and transfer / rename
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question