mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Merge pull request #3163 from kfrncs/patch-1
missing $ on line 77 - $Length
This commit is contained in:
commit
218778bdb1
@ -74,7 +74,7 @@ echo ${Variable/Some/A} # => A string
|
||||
|
||||
# Substring from a variable
|
||||
Length=7
|
||||
echo ${Variable:0:Length} # => Some st
|
||||
echo ${Variable:0:$Length} # => Some st
|
||||
# This will return only the first 7 characters of the value
|
||||
|
||||
# Default value for variable
|
||||
|
Loading…
Reference in New Issue
Block a user