Re: Searching through a directory.

2004-02-14 Thread John W. Krahn
John Lin wrote: > > Hi List, Hello, > This is probably a really simple question, but I need some help with this. > Basically, I am searching through a directory and if something matches > what I am looking for, then save that filename to a text file. Someth

Re: Searching through a directory.

2004-02-13 Thread R. Joseph Newton
John Lin wrote: > Hi List, > > This is probably a really simple question, but I need some help with this. > Basically, I am searching through a directory and if something matches > what I am looking for, then save that filename to a text file. Someth

Re: Searching through a directory.

2004-02-13 Thread John Lin
Hi Daniel, Yes, that is exactly what was wrong with this script. Thanks so much! John At 05:41 PM 2/13/2004, you wrote: --As of Friday, February 13, 2004 5:07 PM -0800, John Lin is alleged to have said: for ($i=0; $i <= $#filenames; $i++) { [EMAIL PROTECTED]; if ($wanted_filen

Re: Searching through a directory.

2004-02-13 Thread Daniel Staal
--As of Friday, February 13, 2004 5:07 PM -0800, John Lin is alleged to have said: for ($i=0; $i <= $#filenames; $i++) { [EMAIL PROTECTED]; if ($wanted_filename == $filename) { $append_filename=$filename . ';'; open(APPENDFILE, ">>/anotherdirectory/

RE: Searching through a directory.

2004-02-13 Thread Tim Johnson
om: John Lin [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 5:07 PM To: [EMAIL PROTECTED] Subject: Searching through a directory. Hi List, This is probably a really simple question, but I need some help with this. Basically, I am searching through a directory and if something matches w

Searching through a directory.

2004-02-13 Thread John Lin
Hi List, This is probably a really simple question, but I need some help with this. Basically, I am searching through a directory and if something matches what I am looking for, then save that filename to a text file. Something like this: === $wanted_filename