Posted by David Haynes on 01/08/06 23:41
oswald wrote:
> ok.. here's the deal...
>
> I have an array of file names (read from directory). I'm having trouble
> working out something like this :
>
> user searches the files (array of filenames, say array1) for a specific
> name (filenames are something like "JOHN SMITH.jpg" - yes, they contain
> spaces and I can't change that).
>
> So - for example - user searches for "SMITH"
> I'm looking for a script that would find any array objects that contain
> "SMITH" in array1 and put the corresponding objects (whole file names
> containg that name) to array2.
>
> hope I was clear enough...
>
So, what have you tried already?
This has the characteristics of a homework assignment...
-david-
[Back to original message]
|