1.

Tell Me The Syntax Of “case Statement” In Linux Shell Scripting?

Answer»

The basic SYNTAX is SHOWN below:

case word in

VALUE1)

command1

command2

…..

last_command

!!

VALUE2)

command1

command2

……

last_command

;;

esac

The basic syntax is shown below:

case word in

value1)

command1

command2

…..

last_command

!!

value2)

command1

command2

……

last_command

;;

esac



Discussion

No Comment Found