Date: Fri, 11 Dec 1998 22:27:37 +0000 From: Ben Smithurst <ben@scientia.demon.co.uk> To: "Paul T. Root" <proot@horton.iaces.com> Cc: "James A. Taylor" <jataylor@lundahl.com>, freebsd-questions@FreeBSD.ORG Subject: Re: Recursing directories? Message-ID: <19981211222737.A27108@scientia.demon.co.uk> In-Reply-To: <199812111943.NAA05604@horton.iaces.com> References: <36716768.BBCAEA1@lundahl.com> <199812111943.NAA05604@horton.iaces.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Paul T. Root wrote: > echo $i |grep ".shtml$" >/dev/null > if [ $? -eq 0 ]; then > j=`basename $i .shtml` > mv $i $j.html > fi and I thought I was the only one who used grep in ugly ways like that :-) I'd prefer case $i in *.shtml) j=`basename $i .shtml` mv $i $j.html ;; esac Just my 2p -- Ben Smithurst ben@scientia.demon.co.uk send a blank message to ben+pgp@scientia.demon.co.uk for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981211222737.A27108>