Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何小写文本文件中的所有内容,然后将结果输出到 bash 脚本中的新文件?例如输入文件包含
一种 公元前 D 乙
输出
一种 公元前 d e
使用tr命令:
tr
tr '[:upper:]' '[:lower:]' < infile > outfile