Linux shell四劍客之sed

四劍客之sed 格式:sed [-nefri] [動做] 其中n/e/f/r/i 動做有a,i,c,p,s -n 默認把sed命令執行的結果,與原來的數據一塊兒輸出到屏幕,若是加了-n,則只顯示sed處理後的內容 sed -n ‘1p’ sed.txthtml a 在匹配的當前行的後面添加內容,add sed ‘/Simple/ahelloworld’ sed.txt world後面有符號/則會直
相關文章
相關標籤/搜索