Named pipes

Can someone give me a simple example on how to use Sockets for that? From the documentation I cannot figure it out.

For example, let us suppose I want to use grep to extract some lines from a string (I’m not actually willing to do that, this is just a simple example to illustrate what I want):

julia> str = """
           abc 
           def
       """
"    abc \n    def\n"

julia> open("str.txt", "w") do io
           println(io, str)
       end

julia> gr = read(pipeline(`grep "abc" str.txt`), String)
"    abc \n"

Here, I’m writing to disc an intermediate file str.txt. How can avoid that using Sockets?