| 123456789101112131415161718192021 |
- #!/bin/bash
- abs_path=$(cd `dirname $0`; pwd)
- sample_path="${abs_path}/../data"
- data_date=""
- if(($#==1))
- then
- data_date=$1
- else
- data_date=$(date +%Y%m%d -d "-17 $days day")
- fi
- # remove
- test_file="${sample_path}/${data_date}_00000.csv"
- if [ ! -f $test_file ]
- then
- echo `date` "${test_file} is not exist"
- else
- echo `date` "rm -f ${sample_path}/${data_date}_000*.csv"
- rm -f ${sample_path}/${data_date}_000*.csv
- fi
|