Skip to content

Commit

Permalink
Script update
Browse files Browse the repository at this point in the history
  • Loading branch information
cfbastarz committed May 20, 2024
1 parent 6460497 commit d59ea4c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cron_scripts/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,27 @@ do
then
for log in ${Logs[@]}
do
rm -rf ${lpath}/${prod}/${log}/*${log}_${data}*
rm -rf ${lpath}/${prod}/${log}/*${log}_${data:0:8}*
done
elif [ ${prod} == "anls" ]
then
rm -rf ${lpath}/${prod}/${data}
#rm -rf ${lpath}/${prod}/grib_tmp/${data}
rm -rf ${lpath}/${prod}/spec_tmp/${data}
rm -rf ${lpath}/${prod}/${data:0:8}*
#rm -rf ${lpath}/${prod}/grib_tmp/${data:0:8}*
rm -rf ${lpath}/${prod}/spec_tmp/${data:0:8}*
elif [ ${prod} == "obsm" ]
then
rm -rf ${lpath}/${prod}/txt/obs_${data}*.txt
rm -rf ${lpath}/${prod}/txt/gsilog_${data}.txt
rm -rf ${lpath}/${prod}/csv/obs_${data}*.csv
rm -rf ${lpath}/${prod}/csv/gsilog_${data}.csv
rm -rf ${lpath}/${prod}/txt/obs_${data:0:8}*.txt
rm -rf ${lpath}/${prod}/txt/gsilog_${data:0:8}*.txt
rm -rf ${lpath}/${prod}/csv/obs_${data:0:8}*.csv
rm -rf ${lpath}/${prod}/csv/gsilog_${data:0:8}*.csv
elif [ ${prod} == "rdiag" ]
then
rm -rf ${lpath}/${prod}/${data}
rm -rf ${lpath}/${prod}/diag_tmp/${data}
rm -rf ${lpath}/${prod}/${data:0:8}*
rm -rf ${lpath}/${prod}/diag_tmp/${data:0:8}*
elif [ ${prod} == "jo" ]
then
rm -rf ${lpath}/${prod}/preOper/${data}
rm -rf ${lpath}/${prod}/JGerd/${data}
rm -rf ${lpath}/${prod}/preOper/${data:0:8}*
rm -rf ${lpath}/${prod}/JGerd/${data:0:8}*
fi

done
Expand Down

0 comments on commit d59ea4c

Please sign in to comment.