[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: input variables form the shell
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: input variables form the shell |
Date: |
Thu, 1 Mar 2012 11:45:32 -0500 |
On 1 March 2012 10:57, jacopo rocchi <address@hidden> wrote:
> I would liko to do something like this:
>
> write this in the shell: >octave -q script.m ARG
> And then inside script.m i would write something like this: disp(2*ARG);
>
> So I would like the script to print to the shell 2 times the argument passed
> in input.
Yes, see the bottom here:
http://www.gnu.org/software/octave/doc/interpreter/Command-Line-Options.html
HTH,
- Jordi G. H.
- input variables form the shell, jacopo rocchi, 2012/03/01
- Re: input variables form the shell, c., 2012/03/01
- Re: input variables form the shell,
Jordi Gutiérrez Hermoso <=
- Re: input variables form the shell, Jordi Gutiérrez Hermoso, 2012/03/01
- Re: input variables form the shell, jacopo rocchi, 2012/03/01
- Re: input variables form the shell, Martin Helm, 2012/03/01
- Re: input variables form the shell, c., 2012/03/01
- Re: input variables form the shell, jacopo rocchi, 2012/03/01
- Re: input variables form the shell, Jordi Gutiérrez Hermoso, 2012/03/02
- Re: input variables form the shell, c., 2012/03/02