mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 06:47:54 +02:00
fix spelling errors
This commit is contained in:
@@ -56,7 +56,7 @@ echo '$Variable'
|
|||||||
|
|
||||||
# String substitution in variables
|
# String substitution in variables
|
||||||
echo ${Variable/Some/A}
|
echo ${Variable/Some/A}
|
||||||
# This will substitute the first occurance of "Some" with "A"
|
# This will substitute the first occurence of "Some" with "A"
|
||||||
|
|
||||||
# Substring from a variable
|
# Substring from a variable
|
||||||
Length=7
|
Length=7
|
||||||
@@ -74,7 +74,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..."
|
||||||
|
|
||||||
# Reading a value from input:
|
# Reading a value from input:
|
||||||
echo "What's your name?"
|
echo "What's your name?"
|
||||||
|
Reference in New Issue
Block a user