-s Squeeze multiple occurrences of the characters listed in the last operand (either string1 or string2) in the input into a single instance of the character. This occurs after all deletion and translation is completed.
我自己的理解:“针对参数中的最后一个字符集(只有一个字符集参数时就是string1,有两个字符集参数时就是string2)的每个字母,如果出现多个连续的就只保留一个。这个操作在转换和删除操作完成之后进行。
1 | $ echo 'baaabccc'|tr -d 'ac' |