/*
 * Illustrates the use of shell (!!!) pipes
 *
 * To compile: gcc -Wall e01-pipeTry.c -o try-pipe
 * Example: ls | ./try-pipe 
 */

#include <stdio.h>
#include <stdlib.h>

int
main (
  )
{
  char buf[1024];

  while (gets(buf)) {
    printf ("PIPE EXAMPLE: ");
    puts(buf);
  }

  return (0);
}
