So I'm looking at names of files and some of them have _good and _new suffix at the end. I need to move these files but when I come across a file that has two versions, _good and _new, I only wan the _new files to move.
Here's an example of file names:
student_homework_good
student_homework_new
house_work_good
school_work_good
commute_good
From these files, I don't want student_homework_good to move because student_new exists.
The file names are stored in a list: my_files[]
Any suggestions would be welcomed.