summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorDivay Prakash <divayprakash@users.noreply.github.com>2018-10-03 09:54:42 +0530
committerGitHub <noreply@github.com>2018-10-03 09:54:42 +0530
commit6cfd618df3edea644199f9ec4b2cbc90e0465814 (patch)
treea8df7d4c36f845835f836809165007b7792cd95b /bash.html.markdown
parent928f15138e0415191d058e73804c075c49a537cc (diff)
parent9152fe00e54b51ddebaeed9929a3027547cb16a5 (diff)
Merge pull request #3249 from heyitswither/fix-substring2
[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 b1ceb098..cda877ad 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"}