shell 计算相关字符串出现次数 例如: a b b b a 命令执行后能出现 a 2 b 3 跪求shell命令

2025-02-24 05:56:17
推荐回答(1个)
回答1:

for str in "$@"
do
echo $str
done|sort|uniq -c