From: hackbard Date: Sun, 13 Sep 2009 17:16:44 +0000 (+0200) Subject: added renew feature X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=f0eb39894a934a302612e74582afedd9633e5ba6;p=physik%2Fposic.git added renew feature --- diff --git a/vasp_tools/outcar2moldyn b/vasp_tools/outcar2moldyn index 197f28c..6950453 100755 --- a/vasp_tools/outcar2moldyn +++ b/vasp_tools/outcar2moldyn @@ -4,7 +4,15 @@ for i in OUTCAR*; do app=`echo $i | awk -F. '{ print $2 }'` [ ! -z $app ] && app=".$app" -rm -rf video$app +if [ "$1" = "renew" ]; then + rm -rf video$app +fi + +if [ -d video$app ]; then + echo "skipping $app ... (use $0 renew to force rebuild)" + continue +fi + mkdir -p video$app sicnt=`grep 'ions per' $i | awk '{ print $5 }'`