Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Wang Gao
EDTbash
Commits
339991f4
Commit
339991f4
authored
Jul 05, 2019
by
Wang Gao
Browse files
Creat menu.sh script
parent
e8d722bd
Changes
2
Show whitespace changes
Inline
Side-by-side
hw1.sh
0 → 100755
View file @
339991f4
#!/bin/bash
echo
"hello world 1"
\ No newline at end of file
menu.sh
0 → 100755
View file @
339991f4
#!/bin/bash
echo
'Voici une liste des options'
echo
'0) Quit'
echo
'1) hw1'
# echo '2) hw2'
echo
"Quel est votre choix ?"
read
choix
case
$choix
in
0
)
echo
have a
nice
day
;;
1
)
./hw1.sh
;;
# 2) ./hw2.sh ;;
*
)
echo
"votre choix n'existe pas"
&&
echo
"-------------------------"
&&
echo
"Veuillez reselectioner une option : "
;;
esac
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment