Creating an array from file input



Hello,

I need to create an array of file names from an existing text file. I
need to find out how to read a text file that contains the file names
on a multiple line text file. Each individual file name is on a single
line by itself.

I want to create an array of the file names to use as input to a
system command that will loop through the file names.


Thanks,

John

.



Relevant Pages

  • Re: How to parse this txt file?
    ... > John, can you explain what's happening here? ... # into the variable @array. ... # end of while loop ...
    (comp.unix.shell)
  • Re: The name of script itself
    ... You need this instead if you want to do it in a loop: ... even though he's accessing the array in random order, ... Prev by Date: ...
    (comp.lang.awk)
  • Re: elegant solution for counting runs
    ... has to test (within a loop through the sequence) for the first ... Shift the array by 1 and check if the entries in the new array and ... entries that did match. ... prev) then ...
    (comp.lang.fortran)
  • Re: IF with nested AND
    ... Worked just fine for me with array entered. ... John C ... "Joco" wrote: ... which only works for the first cell in the ...
    (microsoft.public.excel.misc)
  • Re: my doesnt totally isolate
    ... John> Hmmm.... ... So how am I supposed to distinguish between an array ... what control you see is an undocumented side effect and may go ... allocation and undef. ...
    (comp.lang.perl.misc)