添加trim功能,避免uuid中前后的空格

This commit is contained in:
wlx 2012-06-28 09:11:02 +00:00
parent a65487989d
commit 17b91d0175
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ do
echo $oneline >> dataset.txt;
cat "$oneline" >> dataset.txt;
uuid=`cat "$oneline"`;
# 移除前后空格,避免错误
uuid=`echo $uuid`;
if [ -e $uuid.txt ]
then
echo "do nothing! uuid重复或后面有空格$uuid"