Need to pass argument

Hi,

I need to pass the argument in my shell script as db_ubackup20111015*.log

Scenario:

I have backup log file location in /home/backup directory (more than 40 days). I need to check the log file of the latest one (tail .

a. How I can retrieve the latest value other than passing parameter

b. How I can retrieve using argument like db_ubackup20111015*.log
(bcoz the actual file is like db_ubackup20111015212456 (It has year

ls -ltr /home/backup | tail -1

will give you the latest file in your back up dir

why is error when you trying to pass as parameter ?