Problem mit funktion in Script /bin/sh
-
Servus,
wie funktioniert das nicht?
Funktion
Add1() { if [ $# -ne 1 ] then echo \ \!\!\!Fatal Error\!\!\!. exit 4 else expr $1 + 1 fi }
irgentwo in script
...
LineCounter=0
...
LineCounter=Add1 $LineCounter
-
Ok habs
LineCounter=`Add1 $LineCounter`War woll etwas vorschnell sorry furs spamming :/.