mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
[bash-jp/ja-jp] Corrected spelling. seperated -> separated
This commit is contained in:
parent
8dc3329730
commit
97cbeab835
@ -66,7 +66,7 @@ echo "Last program return value: $?"
|
|||||||
echo "Script's PID: $$"
|
echo "Script's PID: $$"
|
||||||
echo "Number of arguments: $#"
|
echo "Number of arguments: $#"
|
||||||
echo "Scripts arguments: $@"
|
echo "Scripts arguments: $@"
|
||||||
echo "Scripts arguments seperated in different variables: $1 $2..."
|
echo "Scripts arguments separated in different variables: $1 $2..."
|
||||||
|
|
||||||
# 入力値の読み込み
|
# 入力値の読み込み
|
||||||
echo "What's your name?"
|
echo "What's your name?"
|
||||||
@ -117,7 +117,7 @@ echo "There are $(ls | wc -l) items here."
|
|||||||
echo "There are `ls | wc -l` items here."
|
echo "There are `ls | wc -l` items here."
|
||||||
|
|
||||||
# BashはJavaやC++のように、case文による分岐ができます
|
# BashはJavaやC++のように、case文による分岐ができます
|
||||||
case "$VARIABLE" in
|
case "$VARIABLE" in
|
||||||
#分岐条件として使いたいパターンを並べてください
|
#分岐条件として使いたいパターンを並べてください
|
||||||
0) echo "There is a zero.";;
|
0) echo "There is a zero.";;
|
||||||
1) echo "There is a one.";;
|
1) echo "There is a one.";;
|
||||||
|
Loading…
Reference in New Issue
Block a user