Case-sensitive issue

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Nicole
Premium Member
Premium Member
Posts: 93
Joined: Mon Oct 22, 2007 12:55 pm
Location: Albany
Contact:

Case-sensitive issue

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Nicole
Premium Member
Premium Member
Posts: 93
Joined: Mon Oct 22, 2007 12:55 pm
Location: Albany
Contact:

Post 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 :)
Post Reply