I am using SUSE 10.0. I have some files that appear either as .zip or .txt randomly. Each file has a date / time stamp connected to them. They are in the following format.
The "BOBapp04-04-2006@19-00-" are standard. I can add in a date function to that portion of the file. The 05 is the second and that seems to be random within 20 seconds depending on when the script actually runs. I would like to determine if it is a txt or zip, extract if it is a zip, then change the file name to something that is not random (but keep the date functionality).
Does anyone have any recommendations? I'm giving alot of points for this as I want to test the script to get it working before giving out the points!