Bash-Scripting
Hallo,
ich versuche gerade folgendes:
eine Datei:
# album.alb
T1=text1
T2=text2
T3=text3
ein Script:
#!/bin/bash
source album_001.alb
count=0
while [ $count -lt 17 ] ; do
let count=count+1
SONG=T$count
echo $SONG
done
Also die Schleife funktioniert... - Nur nicht die Zeile "SONG=T$count"
Die BASH sagt mir jedesmal:
./script: =T1: command not found
Also ich gehe mal davon aus, das $count von einem arithmetischen Wert
in eine Zeichenkette umgewandelt werden muß. (richtig ?)
NUR WIE ?
Grüße
Michelle
--
Registered Linux-User #280138 with the Linux Counter, http://counter.li.org.
Reply to: