megawicked
MIS
Ok.... I have a script that is going to take two console logs named the same thing (console.xxxx.gz) in two different directories and tar them up.
The question is... How do I pass the files... /usr/console/logs/PR/console.0506.gz and /usr/console/logs/DT/console.0506.gz to the script below ? I'm confused because as you can see the above console logs will change the name every day.
#!/bin/sh
date=`date "+%m%d%Y"`
tar -cf console_log.$date <files_here>
The question is... How do I pass the files... /usr/console/logs/PR/console.0506.gz and /usr/console/logs/DT/console.0506.gz to the script below ? I'm confused because as you can see the above console logs will change the name every day.
#!/bin/sh
date=`date "+%m%d%Y"`
tar -cf console_log.$date <files_here>