| Re: Running bucles on LINUX terminal [message #65680] |
Tue, 17 March 2009 03:36 |
T.H.
Messages: 13 Registered: December 2008
|
Junior Member |
|
|
On Mar 16, 1:34 pm, llo <bernat.puigdomen...@gmail.com> wrote:
> Hi people,
>
> We can run bulces on the LINUX terminal using & $ after each line.
> For example:
>
> FOR i=0, 5 DO BEGIN & $
> FOR j=0, 2 DO BEGIN & $
> PRINT, i & $
> PRINT, j & $
> ENDFOR & $
> ENDFOR
>
> Today a friend tells me another way to do that:
>
> .R
> FOR i=0, 5 DO BEGIN
> FOR j=0, 2 DO BEGIN
> PRINT, i
> PRINT, j
> ENDFOR
> ENDFOR
> END
>
> Cheers,
>
> llo
This is a great tip. Thanks for sharing.
|
|
|
|
| Re: Running bucles on LINUX terminal [message #65704 is a reply to message #65680] |
Mon, 16 March 2009 12:09  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
llo writes:
> I'm not sure I undertand what do you mean...
> This code works and I only shared it, but you always have a funny
> comment or something to say.
> Right David?
Right. Western American humor of the coyote sort. It
will take some getting used to, probably. Ben can
explain it to you later. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
| Re: Running bucles on LINUX terminal [message #65706 is a reply to message #65704] |
Mon, 16 March 2009 11:52  |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
I'm not sure I undertand what do you mean...
This code works and I only shared it, but you always have a funny
comment or something to say.
Right David?
Cheers,
llo
PD By the way, thanks for the DiscreteColorBar.
|
|
|
|
| Re: Running bucles on LINUX terminal [message #65707 is a reply to message #65706] |
Mon, 16 March 2009 10:52  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
llo writes:
> We can run bulces on the LINUX terminal using & $ after each line.
> For example:
>
> FOR i=0, 5 DO BEGIN & $
> FOR j=0, 2 DO BEGIN & $
> PRINT, i & $
> PRINT, j & $
> ENDFOR & $
> ENDFOR
>
> Today a friend tells me another way to do that:
>
> .R
> FOR i=0, 5 DO BEGIN
> FOR j=0, 2 DO BEGIN
> PRINT, i
> PRINT, j
> ENDFOR
> ENDFOR
> END
Oh, dear. This "friend" let you go on like this
for *how* long!? :-)
Cheers,
David
P.S. Let's just say, in programming if it looks too brain-dead
to be believable, it usually is. :-)
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|