Blog Archive

Thursday, November 11, 2010

Try goto in linux

# script name: try1.sh
# usage: tcsh try1.sh

# output:
#Try goto in linux
#This is Line 3
#This is Line 7

#!/bin/bash
echo "Try goto in linux"
echo "This is Line 3"
goto START
echo "This is Line 5"
START:
echo "This is Line 7"

No comments:

Post a Comment