hi


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting hi
# 1  
Old 05-26-2008
hi

how to create a folder with current date and time and store all the log files in it. the date has change acc to system date ..
# 2  
Old 05-26-2008
hi,
please try again:

- what is the problem?
- what have you tried already?
- what kind of data has to be stored?
- ....
# 3  
Old 05-26-2008
hi

actually i am trying to run a script which will produce some log files during the run. these output / log files r to be stored in a folder named on the current date under logs
for eg i want something like 26-may-2008/logs
in which the log files created today should b stored
# 4  
Old 05-26-2008
You can use this thing.

DIR=`date "+%F"`
`mkdir -p "$DIR"/logs`

Regards,
Siba
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question