diff options
author | Adam Bard <github@adambard.com> | 2018-08-01 20:54:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 20:54:59 -0700 |
commit | 218778bdb114a051e5419285daf23cb3c74d031b (patch) | |
tree | d4be5c04432f50e5d5048c5da5c7626545dd3f17 | |
parent | a0a62132836c99819e947a992244c4cae9151e91 (diff) | |
parent | dbb858281a8c5948606ad3a07225915954a03953 (diff) |
Merge pull request #3163 from kfrncs/patch-1
missing $ on line 77 - $Length
-rw-r--r-- | bash.html.markdown | 2 |
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 |