all pipe
This commit is contained in:
4
poc.sh
4
poc.sh
@@ -28,8 +28,8 @@ original() {
|
||||
}
|
||||
for url in $(foo | grep -o 'https:..www.dndbeyond.com.compendium[^"]*' | sed 's/#.*//' | sort -u); do
|
||||
echo $url
|
||||
foo $url > /tmp/f.html
|
||||
pandoc --ascii --toc --wrap=none --strip-comments -o /tmp/f.md /tmp/f.html; cat /tmp/f.md \
|
||||
foo $url \
|
||||
| pandoc -f html -t markdown --ascii --toc --wrap=none --strip-comments -o - \
|
||||
| sed '/^:::.*/d' \
|
||||
| sed -e '/^# Chapter/p' -e '0,/^# Chapter/d' \
|
||||
| sed -e '/^Share$/,$d' \
|
||||
|
||||
Reference in New Issue
Block a user