#!/bin/bash
# tute9

clear
echo -e "#################################### 09 ######################################\n"
echo -e "If you think redirection is handy give a thought to pipes.\n"
sleep 5
echo -e "Bash allows you to pipe (direct) the output of one command into another command"
echo -e "as input.\n"
sleep 5
echo -e "Let's say that the example.06 was redirected into a large directory and we"
echo -e "didn't want the whole directory listed, we just wanted to see that it was there.\n"
sleep 5
echo -e "This could be done with a pipe using the following command:\n\n"
sleep 5
echo -e "\tls -l | grep example06.txt\n\n\t\c"
sleep 2
ls -l | grep example06.txt
sleep 5
echo -e "\n\nThat prints the relevant line from ls to screen but it wouldn't be much help" 
echo -e "in a script that's running in the background with nobody watching."
sleep 5


