473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Editing Firefox 3.6.8 bookmarks & history with Bash 4.1.5 on Ubuntu 10.04 ?

Is it possible to edit Firefox bookmarks and or history using the command line or a Bash shell script.

Any examples would be more than appreciated - using the mouse is a pain for deletion;I've searched for relevant files with `locate`and Vim but I'm apprehensive about messing up and losing data.
Aug 11 '10 #1
8 2925
sicarie
4,677 Expert Mod 4TB
I'm sure it is - I'd just google where they were, then perform manipulations on them with vi or bash.

What are you trying to do to the history? What are you trying to do to the bookmarks?
Aug 12 '10 #2
Thanks sicarie for your response.
As you know clicking on bookmarks or history in GUI gets
long lists of files,but what I'm looking for is the relevant files in text form, that I can delete or move into directories that I would create.I suspect that some of these files may not be in plain text (I think,for example that emails are in Jason?).

I do have GUI but find text and the command line far
Aug 12 '10 #3
sicarie
4,677 Expert Mod 4TB
Well, were you able to find out where that information is stored? As soon as you know that, you can take a look at it and see if it's just lines in a file, or each entry is its own file, etc... and get a better idea about how you want to manipulate it.
Aug 12 '10 #4
No success,under mozilla or firefox.
I even tried typing firefox in terminal- just opened firefox window - "url not found" - it all led back to GUI.
Tried /usr....... files No joy!
Aug 12 '10 #5
sicarie
4,677 Expert Mod 4TB
I ran a google search and found this - and that first link looked interesting, did you look what's in your profile?
Aug 12 '10 #6
I had a good look-very interesting,but it all led back to GUI,the nearest to text was `json`.I think I'll leave it for now;Many thanks for kind help sicarie.
Aug 14 '10 #7
Nepomuk
3,112 Expert 2GB
Hi pwilliams!

I just found this thread and thought you might want to know, that
- in Firefox versions up to 2 the bookmarks were saved in a file called bookmarks.html in the Firefox profile and the history was saved in the history.dat file, but
- since Firefox 3 they are both in an SQL file called "places.sqlite", also in the Firefox directory. I'm no SQL expert, but there are ways to edit SQL files by command line (I wouldn't recommend just opening them with an editor though, they're extremely complex if you don't know what you're doing).

So, now that you know, what you're looking for, have fun! ^^

Greetings,
Nepomuk
Aug 24 '10 #8
Thanks for the tip Nepomuk,I've had a look at`places.sqlite`;yes,I agree they are best left well alone,for the time being at least.
Aug 24 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Dominic Tocci | last post by:
I'm searching for a way to use window.open on my web page to open a window in firefox that allows the sidebars to work (bookmarks, history, etc). When I use the following: var...
1
by: Michael | last post by:
(Also posted in the alt.os.linux.ubuntu newsgroup, but I thought it might be more appropriate here) Hi, I'm running the Ubuntu Breezy Badger OS. I just installed the Firebird Classical Server...
15
by: Francach | last post by:
Hi, I'm trying to use the Beautiful Soup package to parse through the "bookmarks.html" file which Firefox exports all your bookmarks into. I've been struggling with the documentation trying to...
4
by: Heinrich Wolf | last post by:
Hi all I have a history.back() problem with FF(2). IE works as expected, while FF does not. The multi frame website setup as a whole with a lot of frame content switching works flawlessly in...
3
by: DNK2007 | last post by:
Hi all Is it possible to add some entries in the firefox's cookies.txt file? Thanks DNK2007
2
by: subeen | last post by:
Hi, I have got into an interesting problem. Today I found that if I type "about:cache?device=disk" (without the quotes) in the address bar of firefox, it displays disk cache information. Now I...
0
by: Anil Gupte | last post by:
After upgrading to VS 2005 from 2003, I find that all the old Bookmarks are no longer recognized. They do not apppear in the Bookmarks list and I cannot even find a ToDo item in the menu. ...
10
by: Chuck Anderson | last post by:
Firefox 3 uses sqlite files for bookmarks, browse history, form history, cookies, ...... When I execute : $sqlite_db_file = 'cookies.sqlite'; $db = sqlite_open($sqlite_db_file, 0666,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.