How to write a shell script which read the variable value from one file and pass to it another shell script -


how write shell script reads variable value 1 file , pass shell script. example:

main .ksh

read value table.txt if table name daily_load     execute sqoop1.ksh sqoop1.sh have variable of table_name       (echo sqoop import --connect jdbc:db2://localhost <port_number>/<db> --table table_name  --username user -password pass -m 1 2> log1.txt)  

if can suggest me in other way come.


use case : want move 100 of table using sqoop want keep table name , other variable in separate file. thinking depending upon table name create case of variable list.when main script table name other file call case option , pass value in other shell.other execute command.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -