2
\$\begingroup\$

The problem is I need to skip or delete all the lines between the two keywords in a file and the keyword pair will appear many times in the file.The file looks something like this

.
.
..........
..........
Hello world
..........
..........
welcome
.
.
.
..........
..........
Hello world
..........
..........
welcome
.
.
.
.........
.........
Hello world
..........
..........
welcome
.
.
.
..........
..........

Here the contents between Hello world and welcome are to be deleted (including those keywords). Please help me out with this.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Welcome to PPCG! Please note that this site is for challenges, not general questions on programming. You may want to ask your question on stackoverflow instead. \$\endgroup\$ Commented Apr 30, 2017 at 9:31

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.