D
Deepu
Hi All,
I am trying to compare file names in 2 different directories.
DIR1:
FILENAME_1.a
FILENAME_2.a
FILENAME_3.a
FILENAME_4.a
DIR2:
FILENAME_1.x
FILENAME_2.x
FILENAME_3.x
FILENAME_5.x
I need to 'diff' files with same name else if the filename (Ex :
FILENAME_4) is not present in DIR2 then display message "FILENAME_4 is
not present in DIR2" when it fails to get FILENAME_4.x OR viceversa
"FILENAME_5 is not present in DIR1"
Please help me with some ideas on how this can be achieved.
Thanks
I am trying to compare file names in 2 different directories.
DIR1:
FILENAME_1.a
FILENAME_2.a
FILENAME_3.a
FILENAME_4.a
DIR2:
FILENAME_1.x
FILENAME_2.x
FILENAME_3.x
FILENAME_5.x
I need to 'diff' files with same name else if the filename (Ex :
FILENAME_4) is not present in DIR2 then display message "FILENAME_4 is
not present in DIR2" when it fails to get FILENAME_4.x OR viceversa
"FILENAME_5 is not present in DIR1"
Please help me with some ideas on how this can be achieved.
Thanks