Shell/Bash: select first character string bash Example

By

Shell/Bash Example: This is the "select first character string bash" Example. compiled from many sources on the internet by SimpleTutorials.org

select first character string bash

foo="bar"
echo ${foo:0:1}  
#{str:position:length}
#returns f


* Summary: This "select first character string bash" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others