Using w3m for HTML->TXT doc conversion

h/t Shin-ichi for the tip
This commit is contained in:
Bill Kendrick 2023-07-16 10:48:00 -07:00
parent 8800a58533
commit 82ee0dda75
4 changed files with 32 additions and 45 deletions

7
docs/w3m.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
infile=${@: -1}
args=${@:1:${#}-1}
sed -e "s/<\\/dd>/<br\\/><br\\/><\\/dd>/g" $infile | w3m $args