Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Manipulating UNIX and sqlite db Post 303042934 by Neo on Sunday 12th of January 2020 08:37:10 AM
Old 01-12-2020
Or course it "would be possible".....

Please write your code and show us what you are trying to do "in code" and describe your system details.

(which you have not done).
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

sqlite issue?

i'm on freebsd 5.2.1, and from a fresh installation i've used pkg_add for the latest ported version of apache, as well as installing php 5. supposedly php5 comes with native support for sqlite (in the binary package), and this is what i added. i am trying to install a site engine (the 'gyrator'... (0 Replies)
Discussion started by: brandan
0 Replies

2. HP-UX

sqlite database in HP-UX vs Linux

Hi everybody, We have a cgi application which accesses sqlite database. It works fine in Linux environment but the same code doesn't enter data into the database when done in HP-UX environment. Should the codes vary depending on whether it is Linux or HP-UX. Regards Ruma (1 Reply)
Discussion started by: perlprg
1 Replies

3. Shell Programming and Scripting

Perl - SQLite question

Hello All, I am trying to write a Perl script that is using 'SQLite' as the application needs a very light weight Database. I wanted to know how to catch exceptions when I run queries in SQLite. Without this the Perl script comes to a halt everytime an exception occurs. Please help. Regards,... (4 Replies)
Discussion started by: garric
4 Replies

4. Shell Programming and Scripting

hell and sqlite

Hi everyone, I have a requirement that requires me to fill an sqlite database with 100,000 entries (no duplicates). I will start out by giving the command that will insert the values necessary to populate the database: # sqlite /var/local/database/dblist "insert into list... (2 Replies)
Discussion started by: ogoy
2 Replies

5. Shell Programming and Scripting

[ask]sqlite with shell script

hlow all i have file like this : BDG0100.2011091620162100CF5341.DAT BDG0100.2011091720175500CF5342.DAT BDG0100.2011091820192900CF5343.DAT BDG0100.2011091920210600CF5344.DAT but now i want make file like this 20110916.DAT 20110919.DAT 20110918.DAT 20110919.DAT so what i can do that... (3 Replies)
Discussion started by: zvtral
3 Replies

6. UNIX and Linux Applications

ruby/SQLite database interface

Hello, I'm not sure this is quite the right place, but there do seem to be allot of posts with folks using ruby to play nicely with databases so I thought I would give it a go. I am starting a long process of developing a database application bases on SQLite and ruby. This will run on various... (1 Reply)
Discussion started by: LMHmedchem
1 Replies

7. Shell Programming and Scripting

Help with manipulating environmental variables in UNIX

I am wondering if there is away to increment a date in c shell. What I need to do is basic, but I lack the knowledge. I have they following environmental variable in my job scripts setenv YYYY `date '+%Y'` I then set YYYY to be part of my output dataset name: setenv dd_OUTPUTP... (1 Reply)
Discussion started by: jclanc8
1 Replies

8. Shell Programming and Scripting

Manipulating column in a file in UNIX

Hi I have a file content.txt where I want to replace the value of second column of the file with half of the value of that column. I only have to replace if the second column starts with COM_, rest all values have to be same eg, cat content.txt |COM_A|123|JHV|8475 |ABC|2765|BV|876... (7 Replies)
Discussion started by: infyanurag
7 Replies
GPE-EXPENSES(1) 						   GPE-EXPENSES 						   GPE-EXPENSES(1)

NAME
gpe-expenses - Expense records for GPE using QOF (Query Object Framework). EMBEDDED PLATFORMS
Embedded platforms can choose not to include the libxml2 backend which means that QOF cannot provide the QOF XML backend (called QSF XML). Other platforms are free to use any available QOF backend. All platforms support the SQLite backend, command-line and --gui operation. SQLite databases written on embedded platforms without libxml2 can be copied to the host PC for further processing and conversion of data to or from QSF XML and other formats. SQLite databases can also be queried directly, either using the sqlite application or at the gpe-expenses command line. Without libxml2 support, the output needs to be written to a new SQLite database but this can be used, e.g. to export certain categories of expenses, expenses within a particular time period or expenses that match other similar criteria to a new SQLite database. When accessing a SQLite database on the gpe-expenses command line, you need to specify the sqlite: access method (in a similar manner to specifying a particular protocol in the URL of other applications). See Examples. SYNOPSIS
gpe-expenses {[[--gui]]} [[[--debug]]] gpe-expenses {[[--explain]]} gpe-expenses {[[-l] | [--list]]} gpe-expenses {[[--version]]} gpe-expenses {[[-?] | [--help]]} gpe-expenses [[[--usage]]] gpe-expenses {[[-i] | [--input-file]] filename} [[[-c] | [--category]] string] [[[-t] | [--date]] string] [[[-s] | [--sql]] string] [[[-f] | [--sql-file]] filename] [[[-w] | [--write]] filename] [[[--debug]]] DESCRIPTION
GPE Equivalent for Expenses on the Palm. Supports payment types, categories, expense types (mileage, meals, parking, etc.), notes and currency selection via a Gtk interface. Where available, SQLite data can be easily converted to XML using a QOF format called 'QSF', suitable for use with XSL and other tools. COMMANDS
--gui Load the Gtk graphic interface. Options -w, -s, -f, -t and -c are ignored. -i, --input-file filename Load the QSF XML file:filename or SQLite database sqlite:filename. file: access requires libxml2 support and the QSF XML backend. To access data in a gpe-expenses SQLite database, specify the sqlite: access method. See under EXAMPLES. -l, --list Lists all available databases and exit. --explain List the fields within the gpe_expenses database and exit. Only the one database is currently supported in gpe-expenses. OPTIONS
gpe-expenses options -c, --category string Shorthand to only query objects that are set to the specified category. (Ignored by --gui). -t, --date string Shorthand to only query objects that contain the specified date. Specify dates using YY-MM-DD, YY-MM or just YY. Single digits can omit the leading zero, e.g. 04-12-1, 1st December 2004 - years less than 100 are assumed to be in the 21st century. Years prior to 2000 can be specified as YYYY-MM-DD etc. This value is taken as a range, 05-03-01 includes all times between Tue Mar 1 00:00:00 UTC 2005 and Tue Mar 1 23:59:59 UTC 2005. 05-03 includes all dates and times between Tue Mar 1 00:00:00 UTC 2005 and Thu Mar 31 23:59:59 UTC 2005. 05 includes all dates and times in 2005. (Ignored by --gui). -w, --write filename Write the results of any query to a SQLite database or (if libxml2 is supported) a QSF XML file. Remember to specify the sqlite: access method if libxml2 is not supported. (Ignored by --gui). -s, --sql string Specify a SQL query on the command line. (Ignored by --gui). -f, --sql-file filename Specify one or more SQL queries contained in a file. (Ignored by --gui). --debug Enable debug output using /tmp/gpe-expenses.trace which will be created if it does not exist and overwritten if it does. If this fails, tries to create a temporary trace file in /tmp or uses stderr. help options -h, --help Display the help synopsis for gpe-expenses. --usage Display a brief usage message and exit without connecting. -v, --version Display version of gpe-expenses. EXAMPLES
Start the GPE-EXPENSES graphic interface with debug output sent to /tmp/gpe-expenses.trace gpe-expenses --gui --debug List all currently supported databases. gpe-expenses -l Copy all expenses in 2005 to a backup SQLite database. gpe-expenses -i sqlite:/home/user/.gpe-expenses/expenses -w sqlite:business.sqlite -t 2005 Export all expenses that have the category Business using libxml2 and the QSF XML backend to STDOUT. Note that file: is the default access method and can be omitted only if libxml2 support is available. (SQLite is unable to output to STDOUT, always use -w with SQLite.) gpe-expenses -i expenses.xml -c "Business" Command line SQL query of SQLite storage. gpe-expenses -i sqlite:business.sqlite -s "SELECT * from gpe_expenses where expense_city = 'London';" AUTHOR
gpe-expenses was written by Neil Williams linux@codehelp.co.uk. This manual page was written by Neil Williams linux@codehelp.co.uk REPORTING BUGS
Please do NOT report bugs in gpe-expenses to GPE. Report bugs via the QOF-devel mailing list or use the reportbug tool in Debian. http://lists.sourceforge.net/lists/listinfo/qof-devel COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. SEE ALSO
http://gpe-expenses.sourceforge.net/ http://sourceforge.net/projects/gpe-expenses/ COPYRIGHT
GPE-EXPENSES 1 Mon Dec 24 12:08:31 GMT 2007 GPE-EXPENSES(1)
All times are GMT -4. The time now is 08:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy