Sponsored Content
Operating Systems BSD FF, about:config, storage.vacuum.last.places.sqlite Post 302987050 by jim mcnamara on Sunday 4th of December 2016 06:02:22 AM
Old 12-04-2016
Databases do not always store data in plain text. Before you clobber another file like this, consider using a set of commands to ascertain more about the file.

Code:
f=places.sqlite
file $f
ls -l $f
od -c $f | more

For example, there may be ascii nul bytes in the file if it is binary, rather than text as you assume with the limited data you have on the file.

The file apparently is an index of some sort:
Restoring bookmarks from places.sqlite • mozillaZine Forums

Note there are other files that are associated with book marking, e.g., places.sqlite-shm
These 2 Users Gave Thanks to jim mcnamara For This Post:
 

We Also Found This Discussion For You

1. Shell Programming and Scripting

Sum the fields with 6 decimal places - getting only 2 decimal places as output

I used the below script to Sum up a field in a file based on some unique values. But the problem is when it is summing up the units, it is truncating to 2 decimals and not 6 decimals as in the input file (Input file has the units with up to 6 Decimals – Sample data below, when the units in the 2... (4 Replies)
Discussion started by: brlsubbu
4 Replies
Prophet::Replica::sqlite(3pm)				User Contributed Perl Documentation			     Prophet::Replica::sqlite(3pm)

METHODS
replica_exists Returns true if the replica already exists / has been initialized. Returns false otherwise. replica_version Returns this replica's version. set_replica_version Sets the replica's version to the given integer. uuid Return the replica UUID Internals of record handling traverse_changesets { after => SEQUENCE_NO, UNTIL => SEQUENCE_NO, callback => sub { } } Walks through all changesets from $after to $until, calling $callback on each. If no $until is specified, the latest changeset is assumed. changesets_for_record { uuid => $uuid, type => $type, limit => $int } Returns an ordered set of changeset objects for all changesets containing changes to this object. If "limit" is specified, only returns that many changesets (starting from record creation). Note that changesets may include changes to other records list_records { type => $type } Returns a reference to a list of record objects for all records of type $type. Order is not guaranteed. read_userdata_file Returns the contents of the given file in this replica's userdata directory. Returns "undef" if the file does not exist. write_userdata_file Writes the given string to the given file in this replica's userdata directory. Working with luids perl v5.10.1 2009-12-22 Prophet::Replica::sqlite(3pm)
All times are GMT -4. The time now is 06:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy