Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

HHow to print the group with a highest value within a set

Shell Programming and Scripting


Reply    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 2 Weeks Ago
RudiC RudiC is online now Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 27 June 2017, 4:40 PM EDT
Location: Aachen, Germany
Posts: 10,965
Thanks: 280
Thanked 3,371 Times in 3,104 Posts
Please rephrase verbosely and in great detail the conditions; and: what do you mean by "filter"? Eliminate? Print and eliminate others?
For me, the example in post#7 should NOT print, as more than one single letter groups exist. And, why group "e" and not "c"?
Sponsored Links
    #9  
Old Unix and Linux 2 Weeks Ago
quincyjones quincyjones is offline
Registered User
 
Join Date: Aug 2010
Last Activity: 23 June 2017, 10:10 AM EDT
Posts: 184
Thanks: 53
Thanked 0 Times in 0 Posts
yeah, sorry. done!
'e' is a single letter group. 'c' is not a single letter group. because there is a group that shares c in it, 'cd'.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Print the key with highest value quincyjones Shell Programming and Scripting 9 03-29-2012 09:09 AM
Only print the entries with the highest number? chirish Shell Programming and Scripting 4 02-22-2012 03:23 AM
Print line with highest value from one column dliving3 UNIX for Dummies Questions & Answers 3 06-29-2011 07:35 AM
Print line with highest value from one column dliving3 UNIX for Dummies Questions & Answers 1 06-28-2011 01:57 AM
Sort the file contents in each group....print the group title as well prash184u Shell Programming and Scripting 11 08-26-2010 01:54 AM



All times are GMT -4. The time now is 04:46 PM.