bash first 10 characters of a string code example Example: bash get first n characters echo ${FOO:0:10}