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.
gnuplot を使用する Mac bash シェルでスクリプトを使用しています。
私が使うとき
using 1:($2*100.0)
スクリプトで、私は得る
using 1: (*100.0) line 0: invalid expression
ただし、gnuplot のプロンプト ラインで同じコマンドを使用しても問題はありません。
usingスクリプトでコマンドを使用する場合、コマンドの別の形式はありますか?
using
御時間ありがとうございます。
スクリプトを投稿していないので、推測することしかできません。
この問題は、$2 が bash によって「スクリプトの 2 番目の引数」として解釈されることに起因する可能性があります。バックスラッシュでドル記号をエスケープする必要があります。
using 1:(\$2*100.0)