linux幾條常用命令

一. 寫一個sed命令,修改/tmp/input.txt文件的內容,要求:(1) 刪除所有空行;(2) 一行中,如果包含"11111",則在"11111"前面插入"AAA",在"11111"後面插入"BBB",比如:將內容爲0000111112222的一行改爲:0000AAA11111BBB2222 1 2 ( 1 )sed   '/^$/d'  / tmp / input .txt ( 2 )s
相關文章
相關標籤/搜索