filter last 24 hour data and put in new file

i have file server 1 (filesvr01acess.log) and disc server 1 (discsvr01acess.log) in unix box(say ip adress of the box 10.39.66.81)
Similiarly i have file server 2 (filesvr01acess.log) and disc server 2(discsvr01acess.log) in another unix box(say ip adress of the box 10.39.66.82).

Now my requirement is write unix shel script

  1. I need only last 24 hour data out of the file server 1 and file server 2 and then finaly put this data in one new file

  2. Similiarly same need for discserver 1 and discserver 2

Kindly help on this as I am beginner.:slight_smile:

FYI, each .log files mentioned above is nicely order as date and time as it is created. I can view through cat or search by using grep comand in unix

I am wondering if we can achieve through grep command in unix

Could you please give an example input and expected output?