Hi,
Is there an elegant way to verify if a bunch of files (names case insensitive) exist in a directory ?
ie I can get files named google*.csv (case insensitive, * stands for wild character). ie I can get Google123.csv, GOOGLE.csv, google343.csv, etc
rather than saying
if [-f google*.csv] || [-f Google*.csv] || ...
I was searching for a better way to deal with this situation.
Thanks in advance
philipose
Is there an elegant way to verify if a bunch of files (names case insensitive) exist in a directory ?
ie I can get files named google*.csv (case insensitive, * stands for wild character). ie I can get Google123.csv, GOOGLE.csv, google343.csv, etc
rather than saying
if [-f google*.csv] || [-f Google*.csv] || ...
I was searching for a better way to deal with this situation.
Thanks in advance
philipose