Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sorting by date

Status
Not open for further replies.

davef101

MIS
Mar 3, 2006
34
GB
i have several text files in a directory, all formated like so:

Date|27/10/2006
Order Number|123456
First Name|Blah
Last Name|Blah

etc ..

question is, how do i sort and display the contents of each file by day of the month ?

Thanks in advance
 
does that date correspond with the date the file was created? If so you can sort the file by their creation date or last modified date. If not, you have to open each one, parse out the date and use a sort routine. How many files are you needing to sort?

- Kevin, perl coder unexceptional!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top