bc
コマンドですべての変数 (印刷記号テーブル) をリストすることは可能ですか?
例えば
$ bc -q
x=3
y=4
z=x+y
/* a command for listing all variables defined */
/* and it will show:
x 3
y 4
z 7
or maybe in other format */
「すべての定義済み変数」という言い方があいまいな場合は、「すべての非ゼロ変数」も受け入れられるはずです。
bc
コマンドですべての変数 (印刷記号テーブル) をリストすることは可能ですか?
例えば
$ bc -q
x=3
y=4
z=x+y
/* a command for listing all variables defined */
/* and it will show:
x 3
y 4
z 7
or maybe in other format */
「すべての定義済み変数」という言い方があいまいな場合は、「すべての非ゼロ変数」も受け入れられるはずです。