Gast
#1429662
Ich möchte die Ausgabe eines Befehls in eine Variable im Skript haben. #!/bin/sh IMAGECOUNT="$(find . -name \"*.JPG\" -type f | wc -l)" echo "$IMAGECOUNT image files" $ ./script.sh > ./script.sh: line 18: find: command not found > ./script.sh: line 18: wc: command not found > image files $ Würde mich freuen, wenn mir jemand eine Erklärung geben könnte!