Why are there 3 left angle brackets <<<
for the bc
command? I've never seen this before. What does <<<
mean? When else is it used?
For example:
bc <<< 'scale=2; 100/3'
33.33
Source: How do I use floating-point arithmetic in bash?
Note that when I search the man pages for bc
via man bc
, no search result is found for <<
or <<<
.
Update:
<<
is known as a here document.
<<<
is known as a here string.
[From the comments below this question] Here's some excellent answers on it. See the top 2 answers here: https://unix.stackexchange.com/questions/80362/what-does-mean/80368#80368