Here I want to find and delete files starting with "spark-submit." And files starting with "spark_on_yarn_" in the / tmp directory;
#!/bin/sh
find /tmp -name "spark-submit.*" -print |xargs rm -rfv
find /tmp -name "spark_on_yarn_*" -print |xargs rm -rfv