Toon posts:

uit loop in BASH springen

Pagina: 1
Acties:
  • 34 views sinds 30-01-2008

Verwijderd

Topicstarter
Weet iemand hoe je uit een loop springt in BASH

if voorwaarde1
then
actie1
else
actie2
fi

  • Squee
  • Registratie: November 2000
  • Laatst online: 07-06-2025
Uit "man bash" 8)7 :

break [n]
Exit from within a for, while, until, or select loop. If n is
specified, break n levels. n must be >= 1. If n is greater
than the number of enclosing loops, all enclosing loops are
exited. The return value is 0 unless the shell is not executing
a loop when break is executed.

Please do not contact me telepathically.


  • blaataaps
  • Registratie: Juli 2001
  • Niet online
3 seconden zoeken in de manpage van bash gaf mij dit:
Exit from within a for, while, until, or select loop.
Het lijkt me dat je dit zelf ook wel kunt vinden, het is hier geen helpdesk.

Dit topic is gesloten.