sorry about that...i have never done any real scripts in unix, and this is my first coding assignment at my internship...basically the code is supposed to read a list file, which is structured table_name number_days_ago. If there is no number_days_ago specified, the code is supposed to default the value to 30. as the code reads through the file, it is supposed to find the date from number_days_ago(i.e lets say the number was 30, shift_date is supposed to find the date 30days ago from today - 6-01-05). then the query is supposed to save data between 6-01-05 and today.
I've been reading through three different unix books, and the end result is just me ending up being confused
, so my apologies if this code looks like it makes no sense.
Thanks for your help vgersh!
btw, those trailing lines were from the original script, i wasnt sure if i still needed them or not...