shell 文件大小写替换

文件大小写替换

20191030


  • tr命令[需要文件重定向]
#小写转换到大写
tr [a-z] [A-Z] < $file > $newfile
#大写转换到小写
tr [A-Z] [a-z] < $file > $newfile

参考【参考资料1】

猜你喜欢

转载自www.cnblogs.com/damahuhu/p/11764040.html