Re: Bash-Scripting
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]}
> echo $SONG
> done
>
> NUR WIE ?
man bash
/ array
Jörg
--
Jörg Schütter http://www.lug-untermain.de/
joerg@schuetter.org http://www.schuetter.org/joerg/
ICQ: 298982789 http://mypenguin.bei.t-online.de/
Reply to: