添加trim功能,避免uuid中前后的空格
This commit is contained in:
parent
a65487989d
commit
17b91d0175
|
@ -13,6 +13,8 @@ do
|
||||||
echo $oneline >> dataset.txt;
|
echo $oneline >> dataset.txt;
|
||||||
cat "$oneline" >> dataset.txt;
|
cat "$oneline" >> dataset.txt;
|
||||||
uuid=`cat "$oneline"`;
|
uuid=`cat "$oneline"`;
|
||||||
|
# 移除前后空格,避免错误
|
||||||
|
uuid=`echo $uuid`;
|
||||||
if [ -e $uuid.txt ]
|
if [ -e $uuid.txt ]
|
||||||
then
|
then
|
||||||
echo "do nothing! uuid重复或后面有空格:$uuid"
|
echo "do nothing! uuid重复或后面有空格:$uuid"
|
||||||
|
|
Loading…
Reference in New Issue