[linux-audio-user] well well

Eric Dantan Rzewnicki eric at zhevny.com
Sun Apr 25 21:34:18 EDT 2004


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__
> 
> 
> 



More information about the Linux-audio-user mailing list