今天在改寫之前的Sync 程式時,需要用到substr 的功能來截取部份字串。 因為是寫 Shell ... substr=`echo ${str} | cut -c 1-5`.
blog.xuite.net