summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2018-08-01 20:54:59 -0700
committerGitHub <noreply@github.com>2018-08-01 20:54:59 -0700
commit218778bdb114a051e5419285daf23cb3c74d031b (patch)
treed4be5c04432f50e5d5048c5da5c7626545dd3f17 /bash.html.markdown
parenta0a62132836c99819e947a992244c4cae9151e91 (diff)
parentdbb858281a8c5948606ad3a07225915954a03953 (diff)
Merge pull request #3163 from kfrncs/patch-1
missing $ on line 77 - $Length
Diffstat (limited to 'bash.html.markdown')
-rw-r--r--bash.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index 3f3e49eb..d1e6bf25 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -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