We have log files spread out over several directories and want to automate the process of consolidating them back to a single location. Your task is to create a script that will perform this consolidation. Note that this script must be designed to run on different systems, which means that your script must be able to run on a system that is different than the one you have access to for this test.
Create a script in the file consolidate_logs.sh that does the following:
- For each log file in the LOG_LOCATIONS environment variable, copy that file to the location specified in LOG_DESTINATION but do not overwrite any files that already exist in LOG_DESTINATION