小编use*_*266的帖子

检查一个字符串是否不止一次有一个字符

我想检查一个字符串是否不止一次包含一个字母(不是一个特定的字母,实际上是任何字母)。

例如:

用户:

test.sh this list
Run Code Online (Sandbox Code Playgroud)

脚本:

if [ "$1" has some letter more then once ]
then 
do something
fi
Run Code Online (Sandbox Code Playgroud)

shell bash text-processing

5
推荐指数
1
解决办法
4004
查看次数

标签 统计

bash ×1

shell ×1

text-processing ×1