Skip to Content

bods script to delete duplicate input files

hi all,

i have a list of csv files being sent via FTP daily to a folder.

i need to check if duplicate files available and then delete one of the copy and read the rest of the files.

i am not able to find the script to identify the duplicate file.

can anyone please suggest?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 13, 2015 at 07:49 AM

    Hello Swetha,

    I am a little bit confused, maybe I do not understand your problem correct.

    So you have a folder and load files to this folder every day.

    1. Is it possible to have 2 files with the same name in the one folder? In my opinion thats not possible.
    2. If you have 2 files with the same name, which file do you want to delete? Would both files have the same content?

    Regards

    Severin

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2015 at 11:12 AM

    This can be easily achieved with OS, eg: bash - How to find duplicate files with same name but in different case that exist in same directory in Linux? - Stack O…

    Do you specifically need to implement this in SAP Data Services?

    Thank you,

    Viacheslav.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 14, 2015 at 05:31 AM

    thanks all for your suggestions.

    i will try out all the approaches and post the results shortly.

    Add comment
    10|10000 characters needed characters exceeded