LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-23-2017, 04:48 AM   #1
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Rep: Reputation: Disabled
Terminal base Collection Managers?


I'm looking for a no frills program that works via the console, which will let me compile a list of all my old games. I know theres MOLL, but apparently it doesn't have a search function.

Was just wondering if anyone might be able to suggest a program.

Many thanks
 
Old 04-23-2017, 05:54 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Might get better results editing the subject to
Consoled-based Collection Managers?

Just sayin'
 
Old 04-23-2017, 12:08 PM   #3
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
Sadly I cant change the subject heading, just the post body.
 
Old 04-23-2017, 01:06 PM   #4
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 4,179

Rep: Reputation: Disabled
How about using Sqlite3 - you can set up how to organise it & make your own queries to extract what info you want.
 
Old 04-23-2017, 03:28 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by haemogoblin View Post
I'm looking for a no frills program that works via the console, which will let me compile a list of all my old games. I know theres MOLL, but apparently it doesn't have a search function.

Was just wondering if anyone might be able to suggest a program.

Many thanks
http://bashscripts.org/forum/viewtopic.php?f=7&t=414
is a script for just such a thing.
 
Old 04-23-2017, 04:55 PM   #6
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thanks for that, i notice the script is for a phonebook though.

Sqlite3 seems like an aweful lot of leg work for what is essentially a list, I dont think i need an SQL server for just one database lol

Scrub what i said, i just read further and saw its stand alone. Still not entirely sure its what i need :-/

Last edited by haemogoblin; 04-23-2017 at 05:01 PM.
 
Old 04-23-2017, 06:04 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by haemogoblin View Post
Thanks for that, i notice the script is for a phonebook though.
You are welcome.

I too noticed that a phonebook is a collection.
 
Old 04-23-2017, 06:27 PM   #8
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
Managed to edit the script and seems to be working. Going to see if i can add another field or two.

 
Old 04-24-2017, 12:29 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,262
Blog Entries: 10

Rep: Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160Reputation: 5160
Quote:
Originally Posted by Habitual View Post
http://bashscripts.org/forum/viewtopic.php?f=7&t=414
is a script for just such a thing.
a little down the page there's a link to version 2:
http://bashscripts.org/forum/viewtopic.php?f=7&t=1252
 
Old 04-24-2017, 10:59 AM   #10
haemogoblin
Member
 
Registered: Oct 2015
Location: In a house
Distribution: Raspbian, Xubuntu, Ubuntu
Posts: 32

Original Poster
Rep: Reputation: Disabled
I saw that but wasn't sure how easy it would be to modify what with it using SQL instead of Bash. I know only a little about Bash and even less about SQL :-(
 
Old 04-25-2017, 09:32 AM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
You could use find to locate your files / mods.

$ find . -iname '*.mod'

To bridge the gap between text file and DB, you could use a CSV, comma separated values. If there's a fixed number items and no exotic characters, fairly simple. Assume 3 items per line in a text file.

Code:
$ cat FILE.text | while read LINE; do echo \"$LINE\" | awk '{ print $1","$2","$3; }' | sed 's/\,/\"\,\"/g'; done > FILE.csv
Okay, not as simple as I had envisioned it. But importing CSV's into a DB or spreadsheet is simple-er than writing SQL and other more complex things.

Last edited by Shadow_7; 04-25-2017 at 09:36 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change font size in tty terminal for base arch linux install Gremlin022 Linux - Newbie 1 07-07-2014 04:22 PM
Trouble installing zip packages! Have tried terminal and package managers! naveove Linux - Newbie 13 07-02-2013 07:38 PM
black/dead space problem in terminal windows in tiling window managers mkoco Slackware 7 03-17-2010 07:38 PM
LXer: 6 of the Best Free Linux Collection Managers LXer Syndicated Linux News 0 11-09-2009 11:21 AM
LXer: Media collection managers for Linux LXer Syndicated Linux News 0 02-22-2008 11:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration