02-18-2005
4,
0
Join Date: Feb 2005
Last Activity: 13 June 2005, 10:54 AM EDT
Location: London, United Kingdom
Posts: 4
Thanks Given: 0
Thanked 0 Times in 0 Posts
Need help with a script
Hi, I need to write a shell script that has to do the following:
Given a directory of log files that has the following filename format:
audit<date>_<time>_<ID Number>.log
What the script needs to do is to get all the files for one day, sort them by the time, and write the contents of all these files for the day to a new file, keeping it sorted by time.
I'm new to scripting, so I have no idea how to do this without writing C/Java code. But our team wants to make it a script for performance reasons. Any ideas?
Thanks for your help!