Help with passing argument

view story

http://www.unix.com – Hi, I have a script that is scheduled with cron and runs every night. The cron part looks like this: Code: 00 20 * * 0,1,2,3,4,5,6 /usr/local/bin/BACKUP TBTARM HOT DELETE My issue is with the 3rd parameter. Somewhere in the script, i want to tell the script to delete some files if the 3rd parameter is DELETE and her is what i put together: Code: #---------------------------------------------------- function delete_old_backup #---------------------------------------------------- { if [[ $3 == DELETE ]] then     echo "WILL NOW LIST ALL BACKUP FILES IN RMAN BEFORE (HowTos)