liuxiaolong
2020-05-30 bbb568f6e7c06d7bad9bcd98e751cc6e991f26d9
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"