# L-10 MCS 507 Wed 13 Sep 2023 : pipe4ls.jl # Illustrates a pipeline to list the names of # the Julia scripts in the current directory. run(pipeline(`ls` , pipeline(`grep ".jl"`, stdout="listing.txt"))) outputfile = open("listing.txt", "r") lines = readlines(outputfile) println("Julia scripts in current directory :") for i=1:length(lines) println(lines[i]) end