标签:class write 积累 字符 cal string while blog echo
1. 拼接字符串*
#!/bin/sh write_log(){ local up_name=$1 local num=${#string} while [ $num -le 256 ]; do up_name="$up_name*" num=$(($num + 1)) done echo $up_name } write_log "wang"
输出:
wang*****************************************************************************************************************************************************************************************************************************************************************
标签:class write 积累 字符 cal string while blog echo
原文地址:http://www.cnblogs.com/embedded-linux/p/6338034.html