Getting around “argument list too long”

find . -name '*.txt' -print0 | xargs -0 rm

You can substitute the “rm” with any command you need to run on all the associated files. “print0” automagically escapes filenames with spaces or weird characters.