Linux文本處理tr命令筆記

Linux下的tr命令主要是用於文本的轉換和刪除功能。 新建一個文本文件,test.txt內容如下: today IS Saturday tommow is Sumday my name is xiaoming Today  cat test.txt | tr '[a-z]' '[A-Z]' #將test.txt 文本內容轉換爲大寫 輸出結果: TODAY IS SATURDAY TOMMOW I
相關文章
相關標籤/搜索