I have to remove timestamp value from files say
(abc_20200124T141028.csv, bcd_20200124T141052) i.e.,this value(20200124T141028) present in a list a[]
How will I do?
I have to remove timestamp value from files say
(abc_20200124T141028.csv, bcd_20200124T141052) i.e.,this value(20200124T141028) present in a list a[]
How will I do?
you can split the name on the underscore using rsplit() and go to lower() to compare
ex:
edited based on the clarification that it is a list of names. Just do it one by one?