in the Linux_Folder(shown above ) again i have some files having same name as parent folder files.like
similarly in the SOLARIS_Folder(shown above ) again i have some files having same name as parent folder files.like
if i am in Linux_Folder i will look for LEAF_LINUX.log file and use same file from parent folder for doing I/O. similar for other folder.
For this i wil try find LEAF*.LOG file in any folder, as there can be many log files in folder. this will give me LEAF_LINUX.log (or LEAF_SOLARIS.log). i tried using grep for LEAF*.log but i am unable to do it . how can i find LEAF*.log file and store it in a variable for future use.