Answers for "select first character string bash"

10

select first character string bash

foo="bar"
echo ${foo:0:1}  
#{str:position:length}
#returns f
Posted by: Guest on June-02-2021

Code answers related to "select first character string bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language