diff options
author | Divay Prakash <divayprakash@users.noreply.github.com> | 2018-10-03 09:54:42 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 09:54:42 +0530 |
commit | 6cfd618df3edea644199f9ec4b2cbc90e0465814 (patch) | |
tree | a8df7d4c36f845835f836809165007b7792cd95b | |
parent | 928f15138e0415191d058e73804c075c49a537cc (diff) | |
parent | 9152fe00e54b51ddebaeed9929a3027547cb16a5 (diff) |
Merge pull request #3249 from heyitswither/fix-substring2
[bash/en] clarify range of substring
-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 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"} |