Fixed CR handling in feed titles.
This commit is contained in:
parent
28f95938c3
commit
8c7c60076f
2
Makefile
2
Makefile
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue