change output text & add mkdir

This commit is contained in:
wlx 2012-06-25 14:03:31 +00:00
parent ec9e709607
commit 9bbc22af42
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ cat "$oneline" >> dataset.txt;
uuid=`cat "$oneline"`;
if [ -e $uuid.txt ]
then
echo "do nothing! uuid重复"
echo "do nothing! uuid重复或后面有空格$uuid"
else
find -L "${oneline%uuid.txt}" -exec du -b -s {} \; -exec ./dir_output.sh "{}" \; >$uuid.txt
echo $uuid

View File

@ -28,6 +28,7 @@
print $dir."\n";
$dir=$backup_dir.trim($duuid2[1]);
@rrmdir($newdir);
mkdir($newdir,0700,true);
rename($dir,$newdir);
}
}