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
grass-sqlite(1grass)						Grass User's Manual					      grass-sqlite(1grass)

NAME
grass-sqlite - SQLite driver SQLite driver SQLite driver in GRASS Creating a SQLite database GRASS is automatically creating the SQLite database if it is not yet existing when the first table is created in the SQLite database. It is sufficient to define the connection (see next step). Connecting GRASS to SQLite The database name 'sqlite.db' is at user's choice. Also the file storage location can be freely chosen. If the database does not exist, it will be automatically created when database content is created: # example for storing DB in mapset directory (keep single quotes): db.connect driver=sqlite database='$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite.db' db.connect -p Supported SQL commands All SQL commands supported by SQLite (for limitations, see SQLite help page: SQL As Understood By SQLite and Unsupported SQL). Operators available in conditions All SQL operators supported by SQLite. Browsing table data in DB A convenient SQLite front-end is sqlitebrowser. To open a DB file stored within the current mapset, the following way is suggested (corre- sponds to above database connection): eval `g.gisenv` # use double quotes: sqlitebrowser "$GISDBASE/$LOCATION_NAME/$MAPSET"/sqlite.db SEE ALSO
db.connect, db.execute, db.select SQL support in GRASS GIS SQLite web site, SQLite manual, sqlite - Management Tools Last changed: $Date: 2011-02-07 18:59:50 +0100 (Mon, 07 Feb 2011) $ Help Index GRASS 6.4.2 grass-sqlite(1grass)
All times are GMT -4. The time now is 03:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy