Learn how to a build a cloud-first strategyRegister Now


using the bash sort command, now do I sort dates ?

Posted on 2009-02-23
Medium Priority
Last Modified: 2013-12-26
The data is:

 02/05/09 000218L3
 02/02/09 000304L3
 01/19/09 000294L3
 01/28/09 000379L3
 02/02/09 000036L3
 01/23/09 000207L3
 01/19/09 N00311L3
 02/23/09 000405L3
 12/29/08 000051L3
Question by:itguy411
  • 2
LVL 48

Accepted Solution

Tintin earned 800 total points
ID: 23719227
sort -t/ -n -k3 -k1 -k2 file
LVL 85

Assisted Solution

ozo earned 1200 total points
ID: 23719238
sort -t/ -k3,3.2
LVL 85

Assisted Solution

ozo earned 1200 total points
ID: 23720424
sort -t/ -n -k3

Author Closing Comment

ID: 31550471
You do not now how much this has helped !!!

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month21 days, 7 hours left to enroll

804 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question