修复正则错误;对文本结果进行排序

This commit is contained in:
wlx 2015-05-21 22:29:11 +08:00
parent 30bf7f770b
commit 531a588d39
1 changed files with 2 additions and 1 deletions

View File

@ -15,12 +15,13 @@ fcount=`find -L "$datapath"/* | wc -l`
curpath=`pwd`
if [ $fcount -gt 0 ]; then
cd $datapath
find . -printf "%p %s\n" | grep -v '^\./ 4096$|^\. 4096$' | sort >> $curpath/$uuid-fs.txt
find . -printf "%p %s\n" | grep -v '^\./ 4096$\|^\. 4096$' | sort >> $curpath/$uuid-fs.txt
else
echo $datapath;
fi
cd $curpath
cat $uuid-db.txt | sort > $uuid-db.txt
if ! diff -q $uuid-db.txt $uuid-fs.txt > /dev/null; then
vimdiff -c ":TOhtml | :wq | :q | :q" $uuid-db.txt $uuid-fs.txt
cp Diff.html /var/www/ftp2.westgis.ac.cn/diff/$uuid-diff.html