Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 17 Aug 2018, 03:59
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Index, a console-based flat file database
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
Guest
Guest


PostPosted: Mon 18 Jul 2005, 03:54    Post subject:  Index, a console-based flat file database  

Folks,
Please find attached a tiny console app which I have always found useful. Index, a flat file database, it works fine in puppy and is only a 20k binary to out in /usr/bin it just needs a directory ~/.index to store its file (*.idx) in.
I hope you find it as useful as I have.
index.zip
Description 
zip

 Download 
Filename  index.zip 
Filesize  9.76 KB 
Downloaded  780 Time(s) 
Back to top
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15239
Location: Paradox Realm

PostPosted: Mon 18 Jul 2005, 05:42    Post subject: Re: My favourite console app  

Very nice - ideal for Puppy . . .
Just to clarify

Download and unzip (try just clicking on the file and then extracting) or use tkzip
Place the file in /usr/bin and change permissions to executable
the ~/.index is a hidden file (in ROX you change the view options and create there)
When you create the text file of fieilds use ctrl + a to save and then exit
The fields would be something like:

Name:
Address:
Tel:


Much appreciated Wink

_________________
YinYana AI Buddhism
Back to top
View user's profile Send private message Visit poster's website 
Bruce B

Joined: 18 May 2005
Posts: 11488
Location: The Peoples Republic of California

PostPosted: Wed 20 Jul 2005, 21:38    Post subject:  

I hope you don't mind if I elaborate on using index.

Index stores data and template files in the directory ~/.index

The data file is stored with a .db extension of the same base name as the .idx file.

Here is an example template: I want a personal information manager, so I make a text file called ~/.index/pim.idx If I want more than one line for entry data I use the !, as shown below.

Code:
Name
!Address
!
!
Home Phone
Business Phone
Cell Phone
Email
!Notes
!
!
!
!
!
!


Then I start index from anywhere I want in the path. To open the pim database the command is:

# index pim
Back to top
View user's profile Send private message 
ZenMystic

Joined: 12 Aug 2007
Posts: 1

PostPosted: Sun 12 Aug 2007, 19:25    Post subject:  

Thanks Guest, this sounds perfect for my needs, I'll give it a whirl. And thanks Lobster & Bruce B for the quick start guide
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2641

PostPosted: Tue 26 May 2009, 04:30    Post subject:  

Does anyone know where the sources are for this program -'index' is a very generic word.
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15239
Location: Paradox Realm

PostPosted: Tue 26 May 2009, 06:54    Post subject:  

It is likely this is a very old program from Unix - it may have to be decompiled for the source code which then might have details of who wrote it - you might then have a chance for better code than the decompiled version..

You might be able to get some text by looking at the code with a hex-editor . . . Smile

_________________
YinYana AI Buddhism
Back to top
View user's profile Send private message Visit poster's website 
tlchost

Joined: 05 Aug 2007
Posts: 2091
Location: Baltimore, Maryland USA

PostPosted: Tue 26 May 2009, 06:57    Post subject:  

Bruce B wrote:

The data file is stored with a .db extension of the same base name as the .idx file.


What's the structure of the datafile? Are the field names included in the data, or simply the data?

Thom
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1463
Location: Ukraine

PostPosted: Tue 26 May 2009, 08:01    Post subject:  

Dear puppians,

This is the index source file. I found it after some searching. It is old and does not make on my system. I haven't really looked at the make file, but the program dates from the mid-90s.

With kind regards,
vovchik
index1.3L.tar.gz
Description 
gz

 Download 
Filename  index1.3L.tar.gz 
Filesize  32.82 KB 
Downloaded  453 Time(s) 
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6748
Location: hobart

PostPosted: Tue 26 May 2009, 09:03    Post subject:  

Amigo,

is this it?

http://freshmeat.net/projects/index
Back to top
View user's profile Send private message 
gposil


Joined: 06 Apr 2009
Posts: 1305
Location: Stanthorpe (The Granite Belt), QLD, Australia

PostPosted: Tue 26 May 2009, 09:13    Post subject:  

tlchost

The .db file is data as ascii file, one field per line, and the idx file is the field name file.

muggins

Yes that's it...but no work has been done on it in 8 years....

_________________
Dpup Home
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
tlchost

Joined: 05 Aug 2007
Posts: 2091
Location: Baltimore, Maryland USA

PostPosted: Tue 26 May 2009, 09:31    Post subject:  

gposil wrote:

The .db file is data as ascii file, one field per line, and the idx file is the field name file.

Thanks....too bad it's not in another format.

Thom
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0459s ][ Queries: 13 (0.0057s) ][ GZIP on ]