Re: Importing Favorites from windows to Mozilla/Firefox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's more convenient for sure if they get imported. Basically all I need
is some bash (or probably perl) guru and a few commands, should be all
set. The way I did it on my machine is simple; I booted windows, ran
Mozilla, and behold my 'Imported IE Favourites'. I then stole the
bookmarks.html it generated and imported it into Firebird, problem
solved. However in this situation, a script (for bootup) is my best bet,
and I'm probably half-way through making one, check:

#!/bin/bash
 
## This part removes spaces from filenames
 
IFS=$'\n'
i=0
n=`ls | wc -l | sed 's/ //g'`
A=(`ls`)
B=(`ls | sed 's/ /_/g'`)
while [ $i -lt $n ]
do
z=`echo "${A[$i]}" | grep " "`
G=$?
if [ $G -eq 0 ]; then
mv "${A[$i]}" "${B[$i]}"
fi
let i=i+1
done

## This part converts uppercase file names to lowercase
for FILE in *; do mv ${FILE} `echo ${FILE} | awk '{ print tolower
($0);}'`;
done                                                                                
## This part cats url files, greps URL=, dumps into ~/favorites.txt
find *.url -exec grep 'URL=' '{}' \; | grep -v '[[:alpha:]]URL=' >>
~/favorites.txt


By the way, if someone could advise on making the uppercase/lowercase
conversion 'silent' (no errors if file is already lowercase), let me
know.

Any further hints/tips greatly appreciated!


On Mon, 2004-02-16 at 18:21, Mitch Wiedemann wrote:
> Copy all of the "Favorites" .url files into a ~/favorites directory, 
> associate .url files with Mozilla/Firefox, and let the user sort them 
> out?  That's been my low-tech solution -- which has been fairly well 
> received considering my clients pay by the hour. :)
> 
> Doesn't really answer your question, but I guess it depends on how 
> "important" it is that they get imported, rather than just being 
> accessible to the user.
> 
> Best of luck.
> 
> -- 
> Mitch Wiedemann
> mc² Computer Consulting
> mc2@xxxxxxxxxxxxx
> http://www.lightlink.com/mc2
> Home: (607) 347-4657
> Cell: (607) 339-9726 
> 




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux