Shell Script Directory Listing [message #243280] |
Wed, 06 June 2007 13:42 |
Krishna_dev
Messages: 32 Registered: May 2007
|
Member |
|
|
Hello...
I am trying to dynamically create a control file within a shell script to load data files using sql loader. control file is being created. problem comes when searching folder for data files. all data files have extension .dat. for recursively scanning directory im using the following:
for V_DATA_FILE IN 'ls -1 $V_DATA_DIR'
do
but this is not working. intention is to load all the files in the directory using control file. does anyone know how to do this.
|
|
|
|
|