运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install tr-tool
镜像加速npx clawhub@latest install tr-tool --registry https://cn.longxiaskill.com镜像同步中
技能文档
Tr - 字符翻译实用程序 翻译、压缩或从标准输入中删除字符。 用替代字符替换指定字符或完全删除它们。 用法:tr-tool [选项] [set2] 常见用途 'a-z' 'A-Z':将小写转换为大写 '\n' ' ':用空格替换换行符 -d 'aeiou':删除所有元音 -s ' ':压缩重复的空格 示例 echo "hello" | tr-tool 'a-z' 'A-Z' echo "foo bar" | tr-tool -d ' ' echo "hello world" | tr-tool -s ' '