mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-06 14:58:31 +00:00
Merge pull request #1105 from liamzebedee/patch-1
fix spelling errors in bash
This commit is contained in:
commit
839c56023b
@ -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 occurrence 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?"
|
||||||
|
Loading…
Reference in New Issue
Block a user