While reading other people's bash code, I found a triple less than sign.
What does <<< mean in Bash?
While reading other people's bash code, I found a triple less than sign.
What does <<< mean in Bash?
It means that the standard input of the command is set to a given string.
For example
command <<< "String"
is equivalent to
echo "String" | command
It's a here string:
http://linux.die.net/abs-guide/x15683.html
http://www.gnu.org/software/bash/manual/bashref.html#Here-Strings
It's actually an enhanced Here Document:
cat <<EOF
data
here
EOF
Equivalent to:
cat <<< "data
here"
Please read more info through man bash.