smart girl that Prudence :)

On Thu, 4 Nov 1999, John Summerfield wrote:
> Prudence suggests you should test for the existence of the target file 
> before moving. She beleives this will avoid clobbering afile with Afile, 
> and also avoid all those annoying error messages.
> 
> She also detects a problem where there are no files. Perhaps something 
> like this untested code:
> 
> FLIST=`ls`
> [ -z "${FLIST" ] || exit
> for  i in ${FLIST};do
>    ii=`echo $i | tr a-z A-Z`
>    [ -f ${ii} ] || mv $i $ii
> done


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to