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

Re: Problem mit Variabeln in einem sh-Script



Christian Knorr:
> Am Montag 25 Februar 2008 22:45:04 schrieb Jochen Schulz:
> 
>> Zusätzlich habe ich mal $resolution eingeklammert, damit eindeutig ist,
>> wo der Variablenname genau aufhört.
>>
> DAS ist natürlich noch besser, so weiß ich auch, warum Folgendes nicht 
> geklappt hat:
> ...$timestamp$resolution...
> So würde es dann klappen?
> ...${timestamp}${resolution...}

$ a=a
$ b=b
$ echo $a$b
ab

Das sollte also auch ohne die geschweiften Klammern klappen.

Du kennst 'set -x'? Damit kann man recht gut sehen, was ein Shellskript
gerade tut.

J.
-- 
Fashion is more important to me than war, famine, disease or art.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: