Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次のことをしようとしています:
sqlplus id/pw <<EOF ! for i in 1 2 3; do echo "$i"; done EOF
しかし、残念ながら私は空の出力になります
出力 1 2 3 を取得するための解決策を教えてください
試しましたか
for i in 1 2 3 do sqlplus id/pw <<< "$i" done
?
あるいは
printf '%s\n' "$i" | sqlplus id/pw
Bash を使用していない場合。