Bash shell substring
examples/shell/substring.sh
#!/bin/bash text="Hello World!" echo $text first=${text:0:4} echo $first middle=${text:4:4} echo $middle
Hello World! Hell o Wo

Published on 2019-05-22
If you have any comments or questions, feel free to post them on the source of this page in GitHub. Source on GitHub.
Comment on this post