I have ripped a number of DVDs for a home HTPC (plex server). Some of the file names contain unwanted characters. I want to preserve most of the original filename string but eliminate the undesired text within it. Here are some examples:
- Existing Filename
Apollo 18-1.mp4, remove-1New filenameApollo 18.mp4Rule: within a chosen directory find all filenames ending in "-1" and eliminate the character string "-1" - Filename
ENTOURAGE_DISC1.Title1.avi, remove.Title1New filenameENTOURAGE_DISC1.aviRule: within a chosen directory find all filenames ending in ".Title1" and eliminate the character string ".Title1"
mv "Apollo 18-1.mp4" "Apollo 18.mp4"is not what you are after.