#!/bin/bash
# tute10

clear
echo -e "#################################### 10 ######################################\n"
echo -e "In a script, if we didn't want to print the relevant line from ls to screen"
echo -e "but instead wanted to run a command if the file was there, and maybe a different"
echo -e "command if it was not there we would use the command if like this:\n\n"
sleep 10
echo -e "\tif [ -a example06.txt ]; then"
echo -e "\t   echo \"Bob's your uncle.\""
echo -e "\telse"
echo -e "\t   echo \"Bob's not your uncle.\""
echo -e "\tfi\n\n\n\t\c"
sleep 5
if [ -a example06.txt ]; then
	echo "Bob's your uncle"
else
	echo "Bob's not your uncle"
fi
sleep 10
