Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
317 views
in Technique[技术] by (71.8m points)

glob - How to segregate the matched file name from the two folder in python

I have two folders one with filenames

"mvn_l2_lpnt_20180101_v03_r04_ephemeris_data.dat" and another with "mvn_l2_svys_20180101_v04_r06_ephemeris_data.dat". the filenames are highly randomized in both files. I need to find matched file names from both folders.

Ex: folder1: file1-'20180101' this matches (Partially only date) with folder2-file2. I need to find all the files in folder2 which are similar to the date(filename) of the folder1.

I am a beginner in python and I searched many answers from StackOverflow which are not serving my purpose. Is there any other way?. Thank You

question from:https://stackoverflow.com/questions/65903052/how-to-segregate-the-matched-file-name-from-the-two-folder-in-python

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...