summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorTucker Boniface <tucker@boniface.tech>2018-10-02 19:22:56 -0700
committerTucker Boniface <tucker@boniface.tech>2018-10-02 20:20:06 -0700
commit9152fe00e54b51ddebaeed9929a3027547cb16a5 (patch)
treee36776447307a1e48a0b49cbcc597acf9db9de73 /bash.html.markdown
parent67f785f10212ca827f25c83cfaa9dddc607a35c6 (diff)
[bash/en] clarify range of substring
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 cb805da7..be879538 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -75,7 +75,7 @@ echo ${Variable/Some/A} # => A string
# Substring from a variable
Length=7
echo ${Variable:0:$Length} # => Some st
-# This will return only the first 7 characters of the value
+# This will return 7 characters of the string, starting from the first char
# Default value for variable
echo ${Foo:-"DefaultValueIfFooIsMissingOrEmpty"}