📌  相关文章
📜  查找包含在另一个字符串中的字符串 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:06.055000             🧑  作者: Mango

代码示例1
#!/bin/bash

STR='GNU/Linux is an operating system'
SUB='Linux'
if [[ "$STR" == *"$SUB"* ]]; then
  echo "It's there."
fi