#!/bin/sh -u # Answer file: Exercise #5 - exercise05script.sh # -IAN! idallen@idallen.ca # Use the standard PATH, umask, character sorting sequence. # Set the language and character set to be ASCII/C standard. # PATH=/bin:/usr/bin ; export PATH LC_COLLATE=C ; export LC_COLLATE LANG=C ; export LANG umask 022 rm -rf web5 mkdir web5 cd web5 pwd wget -q -O weather.html \ http://weatheroffice.ec.gc.ca/city/pages/on-118_metric_e.html echo 'Count of <' grep '<' weather.html | wc -l echo 'Compressability of HTML file using GZIP' wc -c weather.txt echo 'Compressability of TEXT file using GZIP' wc -c