Re: [linux-audio-user] well well

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] well well
From: Eric Dantan Rzewnicki (eric_AT_zhevny.com)
Date: Mon Apr 26 2004 - 04:34:18 EEST


for x in `seq 1 9`; do
echo $x
done

you want to loop over the output of "seq 1 9". the backticks "`" give
you that.

-Eric Rz.

Aaron Trumm wrote:
> someone else mentioned seq too and I've been trying to use it but can't get
> the syntax right - what you've just posted is new to me
>
> is there a bash reference somewhere? obviously there is - the tutorial I
> was reading didn't mention seq though
>
> I tried
>
> for X in seq '1 9'
>
> and
> for X in seq 1 9
>
> but neither of those works
>
> ----- Original Message -----
> From: "Frank Barknecht" <fbar_AT_footils.org>
> To: "A list for linux audio users" <linux-audio-user_AT_music.columbia.edu>
> Sent: Sunday, April 25, 2004 4:12 PM
> Subject: Re: [linux-audio-user] well well
>
>
>
>>Hallo,
>>Aaron Trumm hat gesagt: // Aaron Trumm wrote:
>>
>>
>>> don't blame me if it blows you up. it shouldn't, it's a pretty
>>> simple inane cdparanoia/lame using script. fun. did I do anything
>>> horribly stupid?
>>
>>Nothing I see, but you will love the utility "seq" which will shorten
>>your script immensely:
>>
>> $ seq -w 100
>> 001
>> 002
>> 003
>> 004
>> 005
>> 006
>> 007
>> 008
>> 009
>> 010
>> 011
>> ...
>> 096
>> 097
>> 098
>> 099
>> 100
>>
>>Ciao
>>--
>> Frank Barknecht _ ______footils.org__
>
>
>


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Mon Apr 26 2004 - 04:31:47 EEST