The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
how to filter out some paragraphs in a file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
how to filter out some paragraphs in a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
06-08-2006
tmarikle
Registered User
Join Date: Jan 2005
Posts: 683
Quote:
Originally Posted by
vgersh99
nawk -f cn.awk your_log_file
cn.awk:
Code:
BEGIN { RS=FS="" PATexclude="(CONNECT)|(alter system switch logfile)" } $0 !~ PATexclude
Nice! This works as long as the paragraphs have whitespace between them.
tmarikle
View Public Profile
Find all posts by tmarikle
Find tmarikle's past nominations received
Find tmarikle's present nominations given