DIR=<directory where the files live> ls $DIR | while read FILE do sqlldr ... file=$DIR/$FILE ... done
--- Ravindra <[EMAIL PROTECTED]> wrote: > We have a process that generates log file > continously with dateandtime stamp on the filename > like log_041502_113545.log > > These log files should be loade to the table using > sql loader.I have the sqlldr script to load to > the table.But this sqlldr will be part of the shell > script that is will be executed as cron job > on the unix server. > > How can I read the varying file name in the sqlldr > command and automate the sqlldr job. > > thanks > Ravi > __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Bill Pass INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).