From 682e5dd48ac854fc8a1cc49fd572663284903cf4 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 26 Apr 2016 16:59:05 +0800 Subject: Use git to manage the tools of excess_sample --- clean_repro_zzh.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 clean_repro_zzh.sh (limited to 'clean_repro_zzh.sh') diff --git a/clean_repro_zzh.sh b/clean_repro_zzh.sh new file mode 100755 index 0000000..1478f9c --- /dev/null +++ b/clean_repro_zzh.sh @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Clean the 'repro' and its subdirectories for the sources +# drawn from zzh among the excess_sample. +# +# +# Aaron LI +# 2016-04-12 +# + +case "$1" in + ""|-[hH]*) + echo "Usage: `basename $0` ..." + exit 1 +esac + +INIT_DIR=`pwd -P` +while [ ! -z "$1" ]; do + repro_dir="$1" + shift + cd ${INIT_DIR} + cd ${repro_dir} + echo "*** Cleaning '${repro_dir}' ..." + cd evt + rm -fv *~ .?*~ _* *.log + rm -fv evt2*_orig.fits evt2*_rmsrcs.fits + rm -fv img_*.fits sbprofile.reg *fov*.fits + mv -fv peak*.reg ../img/ + cd ../bkg + rm -fv *~ .?*~ _* *.log + cd ../img + rm -fv *~ .?*~ _* *.log + rm -fv rspec*bak *fov*.fits img_*.fits +done + -- cgit v1.2.2