GeeksforGeeks » Java specific Questions

piped strems

(3 posts)
  1. lunakar
    guest
    Posted 6 months ago #

    what is piped stream? give the example in detail

  2. fred
    guest
    Posted 6 months ago #

    cat abc.txt | grep "open"

    output of cat is input to grep command through pipe.

  3. priyanka
    guest
    Posted 6 months ago #

    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.

RSS feed for this topic