Find all files called "INPUT.txt" in the current directory tree and remove lines starting with # in them, saving backup copies as INPUT.txt.bak
find . -type f -name INPUT.txt -print0 | xargs -0 -I file  sed -i.bak '/^#/d' file