First, I'm doing this in cygwin, on a win2k machine. However, it seems that i have enough linux tools to get the job done (i hope), if I could just figure out how to use them!
I need to delete a group of files that match a pattern. Basically, I'm running a process that alters a bunch of files and appends _fill to the file name, e.g. myfile.txt -> myfile_fill.txt. I need to delete the original files and rename the processed ones, leaving any unprocessed ones alone.
I.e. if the folder contains
After I'm done, I need it to look like this:
This is deleting the myfile1.txt and myfile2.txt and renaming myfile1_fill.txt to myfile1_fill.hld, etc. This will leave the unprocessed one in a state to easily retry the process.
Any help would be appreciated!