sed 刪除多行 - Linux

By Emma
at 2015-11-19T22:34
at 2015-11-19T22:34
Table of Contents
各位前輩大家好
想請問 sed 如果想刪除多行該怎麼做
假設我現在找出來要刪除的行數
但 sed '92,279,280,289,297,322,398d' update_fru.txt
發現最多一次只能刪除兩行,上面的做法會出現錯誤
想請問一下版上各位有沒有什麼方法可以依次刪除多行
--
想請問 sed 如果想刪除多行該怎麼做
假設我現在找出來要刪除的行數
但 sed '92,279,280,289,297,322,398d' update_fru.txt
發現最多一次只能刪除兩行,上面的做法會出現錯誤
想請問一下版上各位有沒有什麼方法可以依次刪除多行
--
Tags:
Linux
All Comments

By Ophelia
at 2015-11-21T06:57
at 2015-11-21T06:57

By Rebecca
at 2015-11-25T13:34
at 2015-11-25T13:34

By Xanthe
at 2015-11-28T17:46
at 2015-11-28T17:46
Related Posts
wine 與 ade 4.5

By Bennie
at 2015-11-19T17:59
at 2015-11-19T17:59
openSUSE Leap 42.1 KDE Plasma 5 卡選單

By Andrew
at 2015-11-18T12:24
at 2015-11-18T12:24
systemd-logind disappear造成gnome crash

By Dorothy
at 2015-11-18T00:08
at 2015-11-18T00:08
wget 抓檔被禁止..如何成功抓?

By Connor
at 2015-11-17T21:25
at 2015-11-17T21:25
windows上的raid 0如何移到linux

By Kama
at 2015-11-17T15:04
at 2015-11-17T15:04