[linux-audio-user] well well

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
> To: "A list for linux audio users" <linux-audio-user@xxxxxxxxxxxxxxxxxx>
> 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__
> 
> 
> 

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux