Unix/Linux Go Back    

Extract common data out of multiple files

UNIX for Dummies Questions & Answers

Kindly Note - This is a Single User Post by Forum Member RudiC Regarding:
Extract common data out of multiple files.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 12-24-2012   -   Original Discussion by macmath
RudiC's Unix or Linux Image
RudiC RudiC is offline Forum Staff  
Join Date: Jul 2012
Last Activity: 21 April 2018, 1:54 PM EDT
Location: Aachen, Germany
Posts: 12,504
Thanks: 401
Thanked 3,877 Times in 3,564 Posts
Try this

$ cat file?|sort|uniq -c|sort -rnb|grep "^ *3"| cut -d" " -f8-30
Rickettsiella grylli
Pseudomonas stutzeri A1501
Aeromonas caviae Ae398