LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2011, 01:12 PM   #16
DBabo
Member
 
Registered: Feb 2003
Distribution: Fedora {latest}
Posts: 470

Rep: Reputation: 37

Quote:
Originally Posted by cpatno View Post
...I will go elsewhere, thanks
good idea.
 
Old 07-26-2011, 03:03 PM   #17
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,544

Rep: Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898Reputation: 2898
And finally, to add to TobiSGD's last post, you yourself have said:
Quote:
I have acquired this from someone who let this get out of hand so that is why I have nothing working at this point.
Wouldn't not bothering to learn about what someone may supply you with only further exacerbate this in the future??
 
Old 07-26-2011, 03:09 PM   #18
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
@ OP

Quote:
Seriously, you are going to RTFM me? It isn't like I asked how do I list all files in a directory, WTF. This is the newbie forum right?
Excuse me?
Some thoughts:
1 - We're all volunteers, we do this for free...
2 - Dont jank a chain unless you know what's on the other end, you might need what's there
3 - What you need is a good insight in PERL/Ruby/any other scripting language
4 - Welcome to Linux, the OS with a very nice side effect: independence
5 - Welcome to this forum, a friendly place where WTF is not part of the vocalubary

I have been one of the first to read the question. Please, this is not even a challenge...

Can I invite you to behave so we can try to help you in a Linux-like manner: relaxed and correct. Thank you.

Wellness

Thor
Edit1
(Apologies to the community for my language...)

Edit2
Quote:
I have acquired this from someone who let this get out of hand so that is why I have nothing working at this point.
...dont panic, we can come up with a solution

Last edited by ButterflyMelissa; 07-27-2011 at 12:37 PM.
 
Old 07-27-2011, 03:55 AM   #19
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Let's get back on topic.
One reference to how LQ works seems enough, no?

Kind regards
 
Old 07-27-2011, 04:56 AM   #20
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by cpatno View Post
What I need to do is take a list of file names from my database,
OK, do you have that list of filenames or do you need help getting it out of the database?
If the latter, which database system (mysql, sqlite) and table definition/schema will help to point you in the right direction.
Quote:
Originally Posted by cpatno View Post
I then need to search in a directory and see if that file actual exists there, if it does not exist I need to be informed somehow.
Once you have the file,
http://en.kioskea.net/faq/1757-how-t...e-line-by-line is an example how to read it line by line
and you can combine it with e.g. http://www.cyberciti.biz/tips/find-o...pressions.html to check if a file exists.

if you have problems, post the code here (between [code] and [/code]).

Last edited by Wim Sturkenboom; 07-27-2011 at 04:57 AM.
 
Old 07-30-2011, 01:22 PM   #21
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Ehrm, not to necro-bump here, but...am I the only one with a feeling of having chased someone away?

By the way, I've got a workable script...by now.
 
  


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
[SOLVED] writing a script kenny53067 Linux - Newbie 27 07-24-2011 10:59 AM
Need help for writing Script vikrambhimbar Linux - Software 2 03-05-2006 04:28 AM
Need help writing a script wswartz Linux - Software 3 04-28-2004 03:35 PM
Help Writing a script. teeth44 Programming 2 10-14-2003 12:00 PM
Writing a Script Nyc0n Linux - General 2 05-27-2002 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration