在使用shell的時候, 可以用以下表示法, 來表示特定範圍的字串 例如 : string='This is an apple' # echo ${string:0:4} 會秀出 This # echo ${string:11:16} 會秀出 apple
文章標籤
全站熱搜
創作者介紹
創作者 coolkevin 的頭像
coolkevin

about my life

coolkevin 發表在 痞客邦 留言(0) 人氣(0)