Page 1 of 1

Same linux command returning different results?

Posted: Wed Jul 03, 2013 9:51 am
by MrBlack
Hey Community

So I've come across a weird anomaly in Datastage that I can't figure out. I have a directory of symbolic links that point to a mounted drive. I use the Linux FIND command to make a comma delimited list that I can later loop through.

Code: Select all

find *.dbf | tr '\n' ','
I execute this in a sequence command stage. It only finds 7 out of 50 files. I visually checked, ensuring case-sensitivity. I make a copy of the sequence and execute; the copy finds all 50. The Linux command is EXACTLY the same in each sequence but one job returns 7 the other returns 50. Executing the command in a shell window returns all 50. So I'm really scratching my head on this one.

Posted: Wed Jul 03, 2013 11:09 am
by ArndW
It might be best to also explicitly define the command, i.e. "find /path/to/start/directory -name *.dbf -print".

Posted: Wed Jul 03, 2013 2:54 pm
by ray.wurlod
Check the two commands again, looking for invisible characters such as space or tab.