cancel jobs related to one name code example
Example: cancel jobs related to one name
sbatch | grep yourname | grep job_name | awk '{print "scancel " $1}' > jobs.cancel
then and !#/bin/bash to first jobs.cancel file, and then
bash jobs.cancel
sbatch | grep yourname | grep job_name | awk '{print "scancel " $1}' > jobs.cancel
then and !#/bin/bash to first jobs.cancel file, and then
bash jobs.cancel