我想检查一个字符串是否不止一次包含一个字母(不是一个特定的字母,实际上是任何字母)。
例如:
用户:
test.sh this list
脚本:
if [ "$1" has some letter more then once ] then do something fi
shell bash text-processing
bash ×1
shell ×1
text-processing ×1