Home OS X
OS X Syntax

goto

Jump to label and continue execution.

SYNTAX 
       goto word

  word is filename and command-substituted to yield a  string  of
  the  form `label'.  The shell rewinds its input as much as possible,
  searches for a line of the form `label:', possibly  preceded  by 
  blanks  or  tabs, and continues execution after that line. 
	        

"Diplomacy is being able to tell someone to go to hell in such a way that they look forward to the trip" - Anon

Related commands:

foreach - Loop, expand words, and execute commands
while - Execute commands

Equivalent BASH command:

goto - Jump to label



Back to the Top

Simon Sheppard
SS64.com