diff options
author | root <root@learnxinyminutes.com> | 2018-08-02 04:08:30 +0000 |
---|---|---|
committer | root <root@learnxinyminutes.com> | 2018-08-02 04:08:30 +0000 |
commit | 6f2003a31f900c1ce3ff1dde64b17c7ac02350cc (patch) | |
tree | 2d7f1f3c82fb125d11b7a59062fd52be6dacad17 /bash.html.markdown | |
parent | 40de8820dbf8a4695d31384aca69c85a4e34d066 (diff) | |
parent | 8a6a3db546868f8c159e61eec6f89b8a83efd25a (diff) |
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
Diffstat (limited to 'bash.html.markdown')
-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 |