Article 5CF09 sed to edit grub.cfg

sed to edit grub.cfg

by
essahar
from LinuxQuestions.org on (#5CF09)
Hello, Is there a way using sed command to delete all menuentry title in grub. the section should be

Quote:
menuentry title OS version ...
{ kernel and initial ramdisk parameter line1
kernel and initial ramdisk parameter line2
...
...
}
I want to delete the all line menuentry and what is after between the bracketslatest?d=yIl2AUoC8zA latest?i=umXc_E17xho:WPwiklUaFEU:F7zBnMy latest?i=umXc_E17xho:WPwiklUaFEU:V_sGLiP latest?d=qj6IDK7rITs latest?i=umXc_E17xho:WPwiklUaFEU:gIN9vFwumXc_E17xho
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments