After receiving a FILENAME_yyyymmdd .txt file from vendor I need a Unix batch script to accomplish the following:
1. Copy the original file to the "archive"
2. Rename original incoming file FILENAME_yyyymmdd .txt to FILENAME.txt
3. FILENAME.sem - create a semaphore file. Nothing needs to be in here. It is
simply a flag to the batch that indicates the file retrieval is complete.
4. Alert relevant parties via email
The most important pieces of that are created the .sem file and transferring/renaming the FILENAME_yyyymmdd .txt to FILENAME.txt file.