next up previous contents
Next: emacs Up: 文字列 Previous: 文字列

スクリプトを shell から使う

例
[sasaki@localhost intro]$ cat sample.oct 
#!/usr/local/bin/octave -qf
a = [2 3; -1 1];
b = [1; 5];
a\b

[sasaki@localhost intro]$ chmod +x sample.oct 
[sasaki@localhost intro]$ ./sample.oct 
ans =

  -2.8000
   2.2000



Toru Sasaki
2001-07-23