Is /etc/rc.local called twice on boot?

Ralf Mardorf kde.lists at yahoo.com
Wed Oct 27 08:38:05 UTC 2021


On Wed, 27 Oct 2021 09:14:55 +0100, Colin Law wrote:
>I am sure that google or   man grep  would tell you that much quicker
>than asking here.

The output of "--help" is shorter, than the output of the manual page.
Man pages and "--help" are not always easy to understand, hence I agree
that at least googling likely provides the wanted information way
faster.

$ grep --help | grep "Context control" -A2
Context control:
  -B, --before-context=NUM  print NUM lines of leading context
  -A, --after-context=NUM   print NUM lines of trailing context

Using the OP's question
https://www.google.com/search?q=Is+there+a+way+to+have+grep+output+lines+before+and+after+a+specific+line+hit?
here returns

"
People also ask
How do you grep and show lines before and after?
https://ma.ttias.be/grep-show-lines-before-and-after-the-match-in-linux/
"

The link provides a very short and easy to understand explanation with
examples.

Regards,
Ralf




More information about the ubuntu-users mailing list