Article 580VT Search for string of text than remove it from file in 1 command?

Search for string of text than remove it from file in 1 command?

by
finalturismo
from LinuxQuestions.org on (#580VT)
So iam using the following command to find an item in my current folder
Quote:
grep -R "sys-boot/grub"
The result is as follows
Code:package.accept_keywords:=sys-boot/grub-2.05_alpha20200310 ~amd64
How can i remove that line item using the line number after using grep, but all in 1 command?latest?d=yIl2AUoC8zA latest?i=4Y1a_55GkN0:QqYUoUWEolU:F7zBnMy latest?i=4Y1a_55GkN0:QqYUoUWEolU:V_sGLiP latest?d=qj6IDK7rITs latest?i=4Y1a_55GkN0:QqYUoUWEolU:gIN9vFw4Y1a_55GkN0
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