I have written a script which generate one logfile on every sunday and thursday
I want to move the older log files into /tmp directory befor generating new one so i used mv command like
mv usr/sbin/appl/logfile.txt usr/sbin/appl/tmp
2) But when i move this file to /tmp it will... (1 Reply)
Hi,
I am trying to find solution how to get this on Solaris machine:
$ MY_DATE=`date +%m/%d/%Y -d "-2 weeks"`
$ echo $MY_DATE
07/01/2009
On Linux machine I can use flags like "+2 weeks", "+1 month", etc. but this doesn't work on Solaris.
What is the most simplest way to write `date... (1 Reply)
Anyone got a script or suggestion for this?
I want to find the date when a parameter in days is supplied..
ie.. parameter can be any number for example 15... and the date returned should then be 15 days ago... or 31 and the date returned should be 31 days ago...
Any ideas on best way to... (2 Replies)