liuxiaolong
2019-12-20 9ec93868542b97e8b6fb23b5e35fa21ea8607e2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
 
filepath=$1
filestore=$2
 
echo "filepath: " $filepath
echo "filestorepath: "  $filestore
 
if [ ! -f $filestore ]; then
        echo "$filestore not exist"
else
        rm -f $filestore
fi
 
for item in `ls $filepath | sort -n`
do
        `cat ${filepath}/${item} >> ${filestore}`
        echo "merge ${filepath}/${item}  to $filestore ok"
done
 
echo "file store ok"