/usr/share/doc/elinks-data/examples/w3m2links.awk.in is in elinks-data 0.12~pre6-13.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!@AWK@ -f
#
# This converts w3m bookmarks.html to ELinks bookmarks.lst used by the Lua
# based bookmarks handling (NOT the internal one!).
#
# Feed it by w3m bookmarks.html on stdin.
#
# Done by Stephane Chazelas <stephane.chazelas@free.fr>
#
BEGIN {
FS="[<>\"]"
c="return {"
}
$2 == "h2" {
print c "\n {\n category = \""$3"\";"
c=" },"
}
$2 == "li" {
print " { name = \""$7"\", url = \""$5 "\" },"
}
END {
print " },\n}"
}
|