Tuesday, August 30, 2016
Linux Bash Shell Script Switch Case and For Loop Example
August 30, 2016
bash
,
code
,
example
,
for loop
,
linux
,
shell script
,
switch case
,
tutorial
Code Switch Case:
Save the code in a file named "SwitchCaseExample.sh".Running the Code:
Just type the code below in terminal. Make sure to cd into that directory if you have not opened the terminal in that directory.bash SwitchCaseExample.sh
Code C or, Java Type For Loop:
Save the code in a file named "ForLoopExample.sh".Running the Code:
Just type the code below in terminal. Make sure to cd into that directory if you have not opened the terminal in that directory.bash ForLoopExample.sh
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment