1

I've always used bc with the <<< operator as such

bc <<< 3+3

But I've wondered what does <<< really do? Does it echo and pipe?

wonton
  • 7,568
  • 9
  • 56
  • 93

1 Answers1

0

According to the GNU bash manual

3.6.7 Here Strings

A variant of here documents, the format is:

<<< word
The word is expanded and supplied to the command on its standard input.

So I guess it's just a here string that is piped to stdin.

wonton
  • 7,568
  • 9
  • 56
  • 93