Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Loop through files in a Directory

Question
Stella Ticker · Mar 18, 2023

Loop through files in a Directory

Is there a command that will loop through the flat files of a given Linux/Unix folder?  I can write the code to open and read each file. But the file names are unknown. I am looking for a way to access each file given a named Linux folder. The files have differing structures so a record map will not work.

Thank you for reading and thank you even more for answering!

#Data Import and Export #InterSystems IRIS

Source URL:https://community.intersystems.com/post/loop-through-files-directory