|
|
|
Re: how to load multiple files into 1 table using unix script [message #149340 is a reply to message #149296] |
Thu, 01 December 2005 05:33 |
tarundua
Messages: 1080 Registered: June 2005 Location: India
|
Senior Member |
|
|
No one will you provide you the entire solution unless you are not willing to do anything on your own.
I can give you the logic but you have to implement it.
1. ls -l /your_directory | awk ' { print $9}' > result_file
Now this result_file will contain the name of all the files in the directory.
Read that file
2. cat result_file | \
while read filename
do
uncompress $filename
--- you can use loading script here after uncompressing
done
hope it will help you.
|
|
|