Advertisement
Guest User

Untitled

a guest
Sep 11th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. // Mehrere Dateien
  2.  
  3. echo "Eingabe der Datei:"
  4. read FILE
  5. while [ ! -z "$FILE" ]
  6. do
  7. if [ -f "$FILE" ]; then
  8.         echo "$FILE existiert."
  9. else
  10.         echo "$FILE existiert nicht."
  11. fi
  12. echo "Eingabe der Datei:"
  13. read FILE
  14. done
  15. echo "Leere Eingabe, Programm wird abgebrochen"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement