<div dir="ltr"><br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Dougie Nisbet</b> <span dir="ltr"><<a href="mailto:dougie@highmoor.co.uk">dougie@highmoor.co.uk</a>></span><br>
Date: 16 August 2013 09:57<br>Subject: Re: [Durham] interesting but expasperating problem sorting rows containing output from 'date' command [resend]<br>To: Martin Ward <<a href="mailto:martin@gkc.org.uk">martin@gkc.org.uk</a>><br>
<br><br><div dir="ltr"><div class="gmail_extra"><div class="im"><br><div class="gmail_quote">On 15 August 2013 17:54, Martin Ward <span dir="ltr"><<a href="mailto:martin@gkc.org.uk" target="_blank">martin@gkc.org.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="overflow:hidden">This seems to do what you want:<br>
<br>
sort -k9n,9n -k5M,5M -k6n,6n -k7,7</div></blockquote></div><br></div>Thank you very much Martin, that does indeed work perfectly.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Funnily enough I'd understood that the -k option continued through the remaining fields, but had I thought it through I'd have realised this was going to cause a problem.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">thanks again,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Dougie</div></div>
</div><br></div>