标签 大小写 下的文章

Linux下将文本文件中的大写字母转换为小写

在仿制一款模板时,发现CSS文件书写不规范,大小写交替使用,看起来实在不舒服。

方法1:

dd if=oldfile of=newfile conv=lcase

方法2:

awk '{print tolower($0)}' oldfile >newfile

方法3:

cat oldfile|tr A-Z a-z >newfile