This script removes files containing a given word in their name from a specified directory.
python remove_files_with_word.py <word> <path>
<word>
: Word to search for in the file name.<path>
: Path to the directory to be searched.
To remove files with the word "thumb" in their name from the "photos" directory, run the following command:
python remove_files_with_word.py thumb "/path/to/photos"
If any files are found and removed, the script will display a list of the removed files. If no files are found, it will display a message indicating that no files were found with the specified word in their name.
Please ensure that you have the necessary permissions to delete files in the specified directory.
This project is licensed under the MIT License.
Feel free to modify the content and structure of the `README.md` file to fit your needs. Remember to include any additional information or instructions that you think would be helpful for users.
Let me know if you need any further assistance!