📜  bash if 字符串中的子字符串 - Shell-Bash 代码示例
📅  最后修改于: 2022-03-11 14:50:27.245000             🧑  作者: Mango
代码示例4
#!/bin/bash
STR='GNU/Linux is an operating system'
SUB='Linux'
case $STR in
*"$SUB"*)
echo -n "It's there."
;;
esac