tr
分类
描述
转换或删除字符
语法
tr [选项] 集合1 [集合2]
常用选项
使用示例
- echo 'hello' | tr 'a-z' 'A-Z': 转换为大写
- tr -d '0-9' < file.txt: 删除所有数字
相关命令