Skip to main content
deleted 1 character in body
Source Link
Etcetera
  • 21
  • 1
  • 5

I remembered how to do this and even learned it from Stack Exchange, but forgot how I googled it so now I can't find it. The answers I am finding now are not what I'm looking for. Here is an example text:

The quick
brown fox
jumps over
the lazy
dog

I want sed to remove everything before and when it says "jum" so the output would be something like this:\

ps over
the lazy
dog

How do I do this?

I remembered how to do this and even learned it from Stack Exchange, but forgot how I googled it so now I can't find it. The answers I am finding now are not what I'm looking for. Here is an example text:

The quick
brown fox
jumps over
the lazy
dog

I want sed to remove everything before and when it says "jum" so the output would be something like this:\

ps over
the lazy
dog

How do I do this?

I remembered how to do this and even learned it from Stack Exchange, but forgot how I googled it so now I can't find it. The answers I am finding now are not what I'm looking for. Here is an example text:

The quick
brown fox
jumps over
the lazy
dog

I want sed to remove everything before and when it says "jum" so the output would be something like this:

ps over
the lazy
dog

How do I do this?

Source Link
Etcetera
  • 21
  • 1
  • 5

How to delete all text before and when string occurs on sed

I remembered how to do this and even learned it from Stack Exchange, but forgot how I googled it so now I can't find it. The answers I am finding now are not what I'm looking for. Here is an example text:

The quick
brown fox
jumps over
the lazy
dog

I want sed to remove everything before and when it says "jum" so the output would be something like this:\

ps over
the lazy
dog

How do I do this?