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 -->
  #1 (permalink)  
Old 08-22-2007
Raynon Raynon is offline
Registered User
 

Join Date: Sep 2006
Location: Sg
Posts: 323
Filtering Data

Hi All,

I have the below input and expected ouput. I need a code which can scan through this input file and if the number in column1 is more than 1 , it will print out the whole line, else it will output "No Re-occurrence". Can anybody help ?

Input:

1 vvvvv 20 7 7 23 0 64
6 zzzzzz 11 5 5 13 0 1
1 uuuuu 17 0 0 24 0 146
5 qqqqq 7 3 3 11 0 199
1 ggggg 11 5 5 13 0 13
1 yyyyy 13 7 7 31 0 252


Expected Output:

6 zzzzzz 11 5 5 13 0 1
5 qqqqq 7 3 3 11 0 199
Reply With Quote
Remove advertisements
!!
Forum Sponsor