Hi, * Am 05.03.2004 (13:41) schrieb Peter Wiersig:
Woher soll die Bash wissen, das sie nur $file1 austauschen soll. Du meinst: for zx in ${file1}_LIST
Nein, meine ich nicht, denn: ,----[ test.sh ]- | #! /bin/sh | | file1=test | | test_LIST="1 | 2 | 3" | | echo ${file1}_LIST | | for zx in ${file1}_LIST | do | echo $zx | done `---- und die Ausgabe: ,----[ test_out ]- | test_LIST | test_LIST `---- Sie sollte aber so sein: ,----[ test_should ]- | 1 2 3 | 1 | 2 | 3 `---- ${file1}_LIST war mein erster Ansatz, er hat aber nicht funktioniert. Daher hab ich den Thread hier erst gestartet. -sa -- sa at programmers-world dot com http://www.livingit.de 14:00 Internet sites: http://www.not2long.net - Make long links short Boomarks online: http://www.mobile-bookmarks.info