GeeksforGeeks » Java specific Questions
piped strems
(3 posts)-
what is piped stream? give the example in detail
-
cat abc.txt | grep "open"
output of cat is input to grep command through pipe.
-
piped stream r those stream which r used to transfer result of command (in left of pipe ( | ) ) to the command present in right side of pipe
for example :
cat abc.txt | wc -l
will result the number of line in file abc.txt but remember abc.txt must exist in ur system..
Reply
You must log in to post.