Skip to content

Commit 952be8e

Browse files
committed
add prepare data
1 parent b6c6845 commit 952be8e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#! /bin/bash
2+
function print(){
3+
if [ $1 -lt 10 ];
4+
then
5+
echo "0"$1
6+
else
7+
echo $1
8+
fi
9+
}
10+
for y in 20190720 20190721 20190722
11+
do
12+
for((i=0;i<24;i++))
13+
do
14+
for((j=0;j<60;j+=30))
15+
do
16+
a=`print $i`
17+
b=`print $j`
18+
echo $y/$a$b
19+
mkdir -p data/$y/$a$b
20+
for ((k=0;k<1;k++));
21+
do
22+
cp ./data/demo_10 data/$y/$a$b/demo_$k
23+
# touch data/$y/$a$b/data.done
24+
done
25+
done
26+
done
27+
done

0 commit comments

Comments
 (0)