Efficiency.
sort is O(n lg n), an awk solution should be O(n)

John


On 11/21/15 10:56 AM, AL F wrote:
>
> On Fri, Oct 30, 2015 at 7:06 PM, Saul Alanis <sdalano at gmail.com 
> <mailto:sdalano at gmail.com>> wrote:
>
>     2 | foo | bar
>     4 | bar | foo
>     1 | bar | foo
>     3 | foo | bar
>
>
>
> ​Why is awk a reqirement? Simply use the comand:
> ​sort -n YOURDATAFILEGOESHERE | tail -n 1 | cut -d\| -f1
>
>
>
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20151121/313f8a83/attachment.html>