Page 1 of 1

Case-sensitive issue

Posted: Mon Oct 15, 2012 2:08 pm
by Nicole
Is there any way to tell the External source stage to grab filenames without being case-sensitive? ie. .xml, .XML, .xMl

I can request that all files are the same case, but figured i'd try to find another solution.

Any advice???

Thanks in advance,

Nicole

Posted: Mon Oct 15, 2012 2:22 pm
by chulett
You haven't told us what command you are using in the ESS. Grep supports -i for "case insensitive" so an ls piped to grep could filter out all of the ".xml" files regardless of case. You could also use a regular expression like [xX][mM][lL] to find them.

Posted: Mon Oct 15, 2012 2:46 pm
by Nicole
chulett wrote:You haven't told us what command you are using in the ESS. Grep supports -i for "case insensitive" so an ls piped to grep could filter out all of the ".xml" files regardless of case. You could ...
Ok, I was only using the ls command...changed it to use grep as well. Thanks :)