Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 179 Bytes

startswith.md

File metadata and controls

15 lines (12 loc) · 179 Bytes

文字列がとある文字ではじまるか

[[ $str == 比較文字* ]]

sample

str="hello, world"

if [[ $str == hello* ]] ;
then
    echo "yes!"
fi