Page 1 of 1

wie wird <<< interpretiert ?

Posted: 04. Jul 2013 10:01
by brum
Hallo,

ich bin auf eine dreifache Umleitung gestoßen. Kann mir jemand erklären wie diese interpretiert wird?

Code: Select all

"44/3" <<< bc -l
Gruß brum

Korrektur

Posted: 04. Jul 2013 10:15
by brum
Der HERE-String muss andersherum:

bc -l <<< 44/3

Posted: 04. Jul 2013 10:15
by hjb
Hi!

man bash
Here Strings
A variant of here documents, the format is:

<<<word

The word is expanded and supplied to the command on its standard input.
Grüße,
hjb

danke

Posted: 04. Jul 2013 11:08
by brum
Danke, was es alles gibt ;-) ,sehe ich heute das erste Mal ;-)