close
在使用shell的時候,

可以用以下表示法, 來表示特定範圍的字串

例如 :

string='This is an apple'

# echo ${string:0:4}

會秀出
This

# echo ${string:11:16}

會秀出
apple
arrow
arrow
    全站熱搜

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