rwxrob-dot/scripts/lynxar

16 lines
261 B
Plaintext
Raw Normal View History

2022-02-09 07:29:05 +00:00
#!/usr/bin/bash
count=1
if test -n "$1"; then
count="$1"
fi
IFS=$'\n'
html=($(tail -"${count}" ~/.lynx_bookmarks.html | pandoc -f html -t markdown --wrap=none))
for line in ${html[@]}; do
line=${line/](/]: <}
line=${line/%)/>}
echo "$line"
done