WoofyDugfock


Group: Members
Posts: 146
Joined: Sep. 2004 |
 |
Posted: Mar. 17 2005,16:36 |
 |
If like me you use dillo a lot and have accumulated heaps of useful bookmarks, you may have noticed that the dillo bookmarks file /home/dsl/.dillo/bm.txt cannot be imported into your Firefox bookmarks - it's in the wrong format. Grrrr!!!
Opening your bookmarks page within dillo and saving as html won't help either.
Frustrated that I couldn't get Gnobog to import dillo bookmarks either and not able to google an existing remedy anywhere, I took some inspiration from Dawid Michalczyk's urlext.sh (GNU GPL), and wrote the little convert_dillobm.sh (see below).
To convert dillo bookmarks into a standard format & import into Firefox:
1. Open a shell, cd to the directory containing the script and enter ./convert_dillobm.sh ~/.dillo/bm.txt 2. This will output the converted file dillobm_converted.html in the directory in which you ran the script. 3. In Firefox, go bookmarks menu --> manage bookmarks -->file --> Import...-->from file -->(browse to dillobm_converted.html and select). That's it.
The dillo bookmarks are now incorporated into your Firefox bookmarks.
Hope this is useful.
---------------------------------------------------------------- #! /bin/bash
# Title: convert_dillobm.sh # Author: WoofyDugfock on dsl forum # Date: 2005.03.17 Amended: 2005.03.18 # Purpose: Converts dillo bookmarks file (bm.txt) argument into a standard bookmarks html file #- suitable for importing into Firefox etc # Distribution: GNU GPL
{ echo "<html><head><title>Bookmarks converted from: $1 </title></head><body>" awk '/http/{$1="";print}' $1 | while read ADR TIT; do echo "<a href=\""${ADR}\"">"$TIT"</a><br>" done echo "</body></html>" } >dillobm_converted.html #output file
exit 0
-------------- "We don't need no stinkin' Windows"
http://news.zdnet.co.uk/software/linuxunix/0,39020390,39149796,00.htm
|