2017-03-25 5 views
0

私はselect文の入力を持つテキストファイルを持っています。shell sciptのselect文のファイル入力

sqlplus -s $USERNAME/[email protected]$HOST<< EOF 
spool $DIRECTORY/UPDATE.xls 
select acc,cr,dr from count where acc in $DIRECTORY/acc.txt; 
spool off; 
exit 
EOF 

ハイライト部分に入力としてテキストファイルを使用する方法を教えてください。

答えて

0

catコマンドと組み合わせて使用​​することができます。従って

select acc,cr,dr from count where acc in `cat $DIRECTORY/acc.txt`; 
関連する問題