标签:com cal eth bash welcome lin training linx str
#! /bin/bashecho ${#i}
-ge 6 ];then for i in I am oldboy linx welcome to our training ;do
if [ echo $i|wc -L
-ge 6 ];then
echo $i
fi
done
for i in I am oldboy linx welcome to our training ;do
if [ expr length $i
-ge 6 ];then
echo $i
fi
done
Three methods about calculate string length
标签:com cal eth bash welcome lin training linx str
原文地址:http://blog.51cto.com/546136/2059731