Miles Bader wrote:
> You could also use the "seq" program instead (which comes with
> coreutils):
>
> for i in `seq 1 $TEST`; do ...
>
> I'm not sure if that's more or less portable than using all these
> various bash features...
Much, much more portable, and readable.
--
see shy jo
signat
On Tue, Oct 02, 2007 at 02:22:41PM -0700, Andrew Sackville-West wrote:
> On Tue, Oct 02, 2007 at 01:57:44PM -0700, ss11223 wrote:
> > On Oct 2, 3:40 pm, Andrew Sackville-West <[EMAIL PROTECTED]>
> > wrote:
> > > Hey folks, help me out with this...please
> > >
> > > [EMAIL PROTECTED]:~$ for i in {1.
You could also use the "seq" program instead (which comes with
coreutils):
for i in `seq 1 $TEST`; do ...
I'm not sure if that's more or less portable than using all these
various bash features...
-Miles
--
`The suburb is an obsolete and contradictory form of human settlement'
--
To UNSUBS
On Tue, Oct 02, 2007 at 01:57:44PM -0700, ss11223 wrote:
> On Oct 2, 3:40 pm, Andrew Sackville-West <[EMAIL PROTECTED]>
> wrote:
> > Hey folks, help me out with this...please
> >
> > [EMAIL PROTECTED]:~$ for i in {1..3}; do echo $i; done
> > 1
> > 2
> > 3
> > [EMAIL PROTECTED]:~$ TEST=3; for i in {
On Wed, Oct 03, 2007 at 12:23:17AM +0200, Gerard Robin wrote:
> On Tue, Oct 02, 2007 at 11:49:16AM -0700, Andrew Sackville-West wrote:
>> From: Andrew Sackville-West <[EMAIL PROTECTED]>
>> To: debian-user@lists.debian.org
>> Subject: bash expansion crap...
>&
On Tue, Oct 02, 2007 at 11:49:16AM -0700, Andrew Sackville-West wrote:
From: Andrew Sackville-West <[EMAIL PROTECTED]>
To: debian-user@lists.debian.org
Subject: bash expansion crap...
Mail-Followup-To: debian-user@lists.debian.org
X-Spam_score: -4.4
X-Spam_score_int: -43
X-Spam_bar:
On Oct 2, 3:40 pm, Andrew Sackville-West <[EMAIL PROTECTED]>
wrote:
> Hey folks, help me out with this...please
>
> [EMAIL PROTECTED]:~$ for i in {1..3}; do echo $i; done
> 1
> 2
> 3
> [EMAIL PROTECTED]:~$ TEST=3; for i in {1..$TEST}; do echo $i; done
> {1..3}
>
> in the first example, its obvious.
On Tue, Oct 02, 2007 at 12:48:04PM -0700, Mike Bird wrote:
> On Tuesday 02 October 2007 11:49, Andrew Sackville-West wrote:
> > Hey folks, help me out with this...please
> >
> > [EMAIL PROTECTED]:~$ for i in {1..3}; do echo $i; done
> > 1
> > 2
> > 3
> > [EMAIL PROTECTED]:~$ TEST=3; for i in {1..$T
On Tue, Oct 02, 2007 at 11:49:16AM -0700, Andrew Sackville-West wrote:
> [EMAIL PROTECTED]:~$ for i in {1..3}; do echo $i; done
> 1
> 2
> 3
I don't get that result (you did say 'bash', right?):
[EMAIL PROTECTED]:~/ 0$ for i in {1..3}; do echo $i; done
{1..3}
Hmm... that was on a sarge s
On Tue, Oct 02, 2007 at 12:48:04PM -0700, Mike Bird wrote:
> On Tuesday 02 October 2007 11:49, Andrew Sackville-West wrote:
> > Hey folks, help me out with this...please
> >
> > [EMAIL PROTECTED]:~$ for i in {1..3}; do echo $i; done
> > 1
> > 2
> > 3
> > [EMAIL PROTECTED]:~$ TEST=3; for i in {1..$T
On Tuesday 02 October 2007 11:49, Andrew Sackville-West wrote:
> Hey folks, help me out with this...please
>
> [EMAIL PROTECTED]:~$ for i in {1..3}; do echo $i; done
> 1
> 2
> 3
> [EMAIL PROTECTED]:~$ TEST=3; for i in {1..$TEST}; do echo $i; done
> {1..3}
>
>
> in the first example, its obvious. In
Hey folks, help me out with this...please
[EMAIL PROTECTED]:~$ for i in {1..3}; do echo $i; done
1
2
3
[EMAIL PROTECTED]:~$ TEST=3; for i in {1..$TEST}; do echo $i; done
{1..3}
in the first example, its obvious. In the second, $TEST gets replaced
with 3, but then the {} doesn't get expanded. I'm
12 matches
Mail list logo