Originally Posted by wademac
I have 3 load balanced servers srv1 srv2 srv3 (for example) and we did not change the log files to reflect the servers so all 3 servers have combined logs that have the same name and I wish for all logs be in the same folder for Urchin so they need all different names...so I need to rename the old logs to have the follow names
from : domain-combined_log-20100731.gz to domain-combined_log-srv1-120100731.gz
all logs follow the same structure with the domain-combined_log-date.gz
Ok...now that you've told us what you WANT to do, what's your question/problem???
A very simple bash script can do this. If you don't know how to write one, there are many bash scripting tutorials you can find via Google that can get you started. if you get stuck, post what you've written, and where you're having a problem, and we can help.