]> git.somenet.org - pub/jan/ctf-seminar.git/blob - writeups/litplus/otw19/merge.sh
Fix Seccon19 formatting
[pub/jan/ctf-seminar.git] / writeups / litplus / otw19 / merge.sh
1 #!/usr/bin/zsh
2 echo A*.md | sed 's/ /\n/g' | xargs cat >merged.md
3
4 if command -v markdown >/dev/null 2>&1; then
5     markdown -f fencedcode,del,toc -T merged.md >preview.html
6 fi
7
8 cat merged.md | sed -e 's/\(\[.\+\?\]\)(\(.\+\?.png\))/\1(otw19\/\2)/g' >../otw19.md