Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Last active January 22, 2016 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icaoberg/9522e919fb323c6fcdb2 to your computer and use it in GitHub Desktop.
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
#!/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