Create a Bash script to automate file processing tasks
Write a Bash script that processes files in the following way: [PROCESS_DESCRIPTION]. The script should handle error cases and log its actions. Ensure the script is efficient and follows best practices.
Use this when you need to automate repetitive file processing tasks on a Unix-like system.