I need help with a bash script that loops through a directory and its subdirectories, looking for files with a specific extension (e.g., .txt). For each file found, the script should extract the date it was last modified, and create a new directory named after that date (if it doesn't already exist). The script should then move the file into the directory named after its modification date. Can you help me write this script in bash?
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence