The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: Filtering Data
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 08-22-2007
Raynon Raynon is offline
Registered User
 

Join Date: Sep 2006
Location: Sg
Posts: 323
Hi Ghostdog,

I only want the the below to surface column1 more than 1.


6 zzzzzz 11 5 5 13 0 1
5 qqqqq 7 3 3 11 0 199


If column1 does not contain 1 then output "No occurence"

eg
Input:
1 vvvvv 20 7 7 23 0 64
1 uuuuu 17 0 0 24 0 146
1 ggggg 11 5 5 13 0 13
1 yyyyy 13 7 7 31 0 252


Output:
No occurrence
Reply With Quote