wie wird <<< interpretiert ?

Post Reply
Message
Author
brum

wie wird <<< interpretiert ?

#1 Post 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

brum

Korrektur

#2 Post by brum »

Der HERE-String muss andersherum:

bc -l <<< 44/3

User avatar
hjb
Pro-Linux
Posts: 3264
Joined: 15. Aug 1999 16:59
Location: Bruchsal
Contact:

#3 Post 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
Pro-Linux - warum durch Fenster steigen, wenn es eine Tür gibt?

brum

danke

#4 Post by brum »

Danke, was es alles gibt ;-) ,sehe ich heute das erste Mal ;-)

Post Reply