Show me a POSIX shell script and the equivalent bash script that flatten a hierarchy of folders by copying all files to a another folder.
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence