473,406 Members | 2,378 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,406 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 2927
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.