On 26.01.2011 13:40, Veit wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hallo,
in meinem Script von der FTA steht unter dem Kapitel
Shel scripts with bash
folgender Satz:

variableName=content

If the content is a chain of characters, we will need to put it between
quotation marks, if it is a number, we do not have to put anything and
if we want to save a command output in the variable, we will need to put
it between characters.

Das letzte Wort "characters" scheint mir ein Uebersetzungsfehler zu sein
und muesste mE auch sowas sein wie Anfuehrungszeichen, Hochkomma, oder
sowas.

Wer kann mir dazu was genaues sagen????

Wenn ich es richtig verstanden habe und es darum geht die Ausgabe von einem Kommando in einer Variablen zu speichern tippe ich auf Backticks.

MfG
Bernhard
--
----------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org

Antwort per Email an