Hi,
I am interested in using the spawn command in IDL to search for a list of files and store them in a variable.
Something like:
spawn, ['find /Volumes/folder1/*.lc'], sourcefiles
will store all of the file paths in an array sourcefiles, which I can access individually.
Is there a way to use the spawn command with a idl/unix variable storing the path, such as:
path='/Volumes/folder1/*.lc'
spawn, ['find' path], sourcefiles.
I'm trying to do this so I can easily parse the file paths for individual files.
Thanks in advance!
|