Fixed CR handling in feed titles.

This commit is contained in:
Emilis Dambauskas 2020-11-22 00:42:58 +02:00
parent 28f95938c3
commit 8c7c60076f
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ downloaded.gmi: feeds.txt
echo "DOWNLOADING: $$DOMAIN $$URL into $$TMP_FILE"; \
./gcat "$$URL" \
| tee $$TMP_FILE; \
TITLE=$$(grep -s -m 1 -E "^# " $$TMP_FILE | cut -c 3- ); \
TITLE=$$(grep -s -m 1 -E "^# " $$TMP_FILE | cut -c 3- | sed "s/\r//g" ); \
echo "TITLE: $$TITLE"; \
echo "full urls:"; \
grep -hsE "^=>\s*\S+\s+[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}(:[0-9]{2})?(Z|\+[0-9]{1,2}:[0-9]{2}))?\s+\S.*$$" $$TMP_FILE \