Re: Bash-Scripting
Am 2004-01-01 22:49:52, schrieb Jörg Schütter:
>Hello Michelle,
>
>On Thu, 1 Jan 2004 22:11:48 +0100
>Michelle Konzack <linux4michelle@freenet.de> wrote:
>
>> Hallo,
>>
>> ich versuche gerade folgendes:
>>
>> eine Datei:
>>
>> # album.alb
>> T1=text1
>> T2=text2
>> T3=text3
>T[1]=text1
>T[2]=text2
>T[3]=text3
>>
>> ein Script:
>> #!/bin/bash
>> source album_001.alb
>> count=0
>> while [ $count -lt 17 ] ; do
>> let count=count+1
>> SONG=T$count
> SONG=${T[$count]}
Das fabriziert ein "Command not found"
>man bash
>/ array
Ist nicht notwendig, denn die mpeg-Titel
stehen ja so in der Datei also
T1=Das_ist_ein_Song.mp3
T2=Debian-Song.mp3
...
Muß ja nur noch diesen blöden Zähler zum laufen bringen.
>Jörg
Grüße
Michelle
--
Registered Linux-User #280138 with the Linux Counter, http://counter.li.org.
Reply to: