JWK1
1
I have a fix_table.ksh script that takes a TABLENAME and a date.
So, in jk_table_file.txt I have the tables...one per line, and
in jk_out_file.txt I have the date in the format I need.
The following doesn not 'want' to work in a shell script...
for TABLE in `cat jk_table_file.txt`; do
`./fix_table.ksh $TABLE < jk_out_file.txt`
Any suggestions?
thanks.
PxT
2
remove the backticks around the second line so that it reads:
for TABLE in `cat jk_table_file.txt`
do
./fix_table.ksh $TABLE < jk_out_file.txt
done
JWK1
3
Thanks for the response...
After taking the tick marks out:
for TABLE in `cat jk_table_file.txt`; do
./fix_table.ksh $TABLE < jk_out_file.txt
done
The message below is spit out after running it.
USAGE: fix_table.ksh tablename YYYY-MM-DD
If I were to fun fix_table from the command line:
fix_table.ksh calldata 2001-05-31
???