The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Filtering Data
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Filtering Data
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
08-23-2007
aigles
Registered User
Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,212
Try this :
Code:
awk '$1>1 { print; c++ } END { if (c==0) print "No occurrence" }' file
Jean-Pierre.
aigles
View Public Profile
Find all posts by aigles