Unix shell quickies
while true
do
echo "infinite loop!"
done
for i in `ls file*`
do
echo "Iterating directory files: ${i}"
done
echo "Send me to the log file" >> /tmp/logfile.log
echo "Send me to std error" >2
LOGFILE=./logfile
echo "interactive output..." | tee -a ${LOGIFLE}
ps -eaf | while read pid ppid uid rest
do
echo $pid
done
echo "Continue: y/n:"
read RESP