[問題] 請問如何用sed作指定行插入指定內容

看板FreeBSD作者 (阿哲)時間19年前 (2006/08/01 15:55), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
找各大說明來照著作..但做不出來... 要做的是編輯 /etc/X11/xorg.conf, 在 FontPath 區段最前面加入 TrueType 及 local 二個路徑 如下 Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" ModulePath "/usr/X11R6/lib/modules" + FontPath "/usr/X11R6/lib/X11/fonts/TrueType/" + FontPath "/usr/X11R6/lib/X11/fonts/local/" ... 請問可能用sed做出來嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.68.83.83
文章代碼(AID): #14pmaFVN (FreeBSD)
文章代碼(AID): #14pmaFVN (FreeBSD)