包含子字符串#!/bin/bash
#
string='hello world'
sub='hello'
if [[ $string =~ $sub ]]
# if [[ $string = *$sub* ]]
# if [[ $stri
2023-03-15