Assume I have a big file, ~1k lines, and I need to delete the line after some pattern, lets call it:
- cannot be done by hand (no searching --
/somePattern, and/or manually moving down one line and deleting).
- preferably a single liner.
- line after the line that contains the pattern has to be gone (no empty line)
- has to be UNIX compatible (I use Debian but need it for UNIX -- great if works on both)
Also if anyone has a link to a site where I can learn this and more regex stuff that be awesome! (But not a beginners type of tut, I have that down, courtesy of
vimtutor and others.)