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
-
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
-
Similiarly same need for discserver 1 and discserver 2
Kindly help on this as I am beginner.
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