You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
261 B
Bash

#!/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