2009-11-25 bash文字列操作Tips

_ bash文字列操作Tips

シェルで文字列をパースして部分文字列を抜き出したいとき
>>>i="cup@test.jp"
>>>echo ${i#*@}
test.jp
>>>echo ${i%@*}
cup
>>>
[]