commit d8a2b18b7cd0659d3dea23b16003101e1436999e
parent cb055a993ee944f459909c83c3e92453d3d6566c
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Tue, 12 Jan 2021 16:38:02 -0800
Update output format for feed script
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/scripts/.local/bin/feed b/modules/scripts/.local/bin/feed
@@ -21,7 +21,9 @@ usage()
# format([file], ...)
format()
{
- awk -f `which sfeed.awk` $@
+ awk -F'\t' '{ printf "From %s: %s\n\n%s", $7, $2, $4 }' |
+ sed -e 's/\\t//g' -e 's/\\n//g' $* | w3m -T text/html -dump -O ASCII |
+ fmt
}
# return specified feeds, or stdin, formatted in 'filename index: title`