" " , STDIN... , , . (, ) STDIN!
bash
${parameter:offset:length}
, , ($1, $2, $3 ..)
#!/usr/bin/env bash
testdata1="1234"
testdata2="abcd"
echo ${testdata1:0:1}
echo ${testdata2:0:1}
echo ${1:0:1}
$ ./test.sh foo
1
a
f
STDIN
#!/usr/bin/env bash
echo please type in your message:
read message
echo 1st char: ${message:0:1}
$ ./test.sh
please type in your message:
Foo
1st char: F