you can try with awk:
awk '/blah/{getline; print}' logfile
More Related Contents:
- How do you delete all lines that contain no letters from the alphabet using either grep, sed, or awk? [closed]
- Convert 11/2/1998 to 110298 [duplicate]
- How can I manipulate text in bash? [closed]
- substitute words on a line only before first delimeter using sed or awk
- Printing with sed or awk a line following a matching pattern
- How to merge every two lines into one from the command line?
- Extraction of data from a simple XML file
- Print lines in one file matching patterns in another file
- Extract lines between two patterns from a file [duplicate]
- Grep output with multiple Colors?
- How to delete rows from a csv file based on a list values from another file?
- How to grep for case insensitive string in a file?
- how to print n words of context while searching text [closed]
- Some troubles with using sed and awk [closed]
- How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?
- How do I find the text that matches a pattern?
- Why does my tool output overwrite itself and how do I fix it?
- sed or awk: delete n lines following a pattern
- Using multiple delimiters in awk
- Using sed, Insert a line above or below the pattern? [duplicate]
- Assigning system command’s output to variable
- Why does “1” in awk print the current line?
- How to escape a single quote inside awk
- Does lookbehind work in sed?
- Remove line if field is duplicate
- What is the difference between sed and awk? [closed]
- Using sed and grep/egrep to search and replace
- get the user input in awk
- Awk replace a column with its hash value
- How to preserve the original whitespace between fields in awk?