Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance
Looks very similiar to your earlier post - Executing Multiple .SQL Files from Single Shell Script file.
See this link - 12 Ways to Parse a file. It shows you how to read contents from a file.
Actually i want to read a name from a list file, append the file extension with that name and then execute that file to create object in database, as the file contains script to create object in database, kindly help me out accordingly. Your help would be very useful for me. plzzzzzzzzz
See these posts.
[Oracle] "Dynamic" sql / Shell script
can nested SQl be run in Unix Script?
Use the forum's search feature with the keywords "sql shell script". You will find many a script with varying depth and breadth.
try this ..
for execute_file in `cat list_file`
do
./${execute_file}.extension
done
romy