Hallo,
in einem BashScript wird eine Zahl "BlockCount" berechnet (nicht so wie im hier Beispiel als Konstante festgelegt) Diese Berechnete Zahl soll an "dd" übergeben werden.
Ein einfaches Beispiel:
1 2 | BlockCount=120 dd if=/dev/sdx bs=1M count=BlockCount of=Dateiname |
Fehlermeldung-> dd: ungültige Zahl: >>BlockCount"
Wie kann ich BlockCount hier als Zahl übergeben? Versucht habe ich schon
1 2 3 | count="$BlockCount" "count=$BlockCount" count=$(BlockCount) |
Gruß Sig