Last active
January 22, 2016 15:24
-
-
Save icaoberg/9522e919fb323c6fcdb2 to your computer and use it in GitHub Desktop.
Find and list all empty files in the current folder and subfolders #slurm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## the next line selects the partition/queue | |
#SBATCH -p pool1 | |
## the next line selects the number of nodes | |
#SBATCH -N 1 | |
## the next line selects the number of CPUs | |
#SBATCH -n 1 | |
## the next line selects the memory size | |
#SBATCH --mem=2G | |
## the next line selects the walltime | |
#SBATCH -t 12:00 | |
## the next lines are used to mail the user | |
## valid type values are BEGIN, END, FAIL, REQUEUE, and ALL (any state change). | |
#SBATCH --mail-type=END | |
#SBATCH --mail-user=icaoberg@andrew.cmu.edu | |
#find and delete all empty error files from PBS | |
find . -type f -name "*.sh.e*" -empty -exec rm -fv {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment