>if [ ".gz" = "`echo \"$STRING\" | sed -n 's/.*\(\.gz\)$/\1/p'`" ]; then
> echo test;

Ewwww.  I think that we can now safely take advantage of
features added to the shell in the late 1970s.


case "$1" in
 *.gz) echo that is a gzipped file ;;
 *) echo that is not a gzipped file ;;

freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to