Help with automating a search / rename.
Posted: Fri Sep 20, 2024 11:07 pm
I have a search I regularly run in the GUI that I'd like to automate (schedule) with the command line. I'm currently using both regex and javascript to filter out files before I match, and maybe there's a different way to do this in the command line?
I'm Looking for any help, here is what I would like to accomplish:
1) this should run recursively on one specific folder.
2) I need to remove all extra spaces from filenames so there's just a single space instead of 2, or 3, or 4 together... etc.
3) I need to exclude files if the path leading to them, or the filename itself contains "MATCH" or "SKIP" (regardless of uppercase, lowercase, etc.).
Any ideas?
I'm Looking for any help, here is what I would like to accomplish:
1) this should run recursively on one specific folder.
2) I need to remove all extra spaces from filenames so there's just a single space instead of 2, or 3, or 4 together... etc.
3) I need to exclude files if the path leading to them, or the filename itself contains "MATCH" or "SKIP" (regardless of uppercase, lowercase, etc.).
Any ideas?