Comparing modified times of files

Tony J Yeates yeates at motcid.UUCP
Tue Mar 26 04:17:53 AEST 1991


krs at uts.amdahl.com (Kris Stephens [Hail Eris!]) writes:

># sh or ksh fragment
>newest() {
>	set -- ls -t $* 2>/dev/null
>	echo $1
>	}
>oldest() {
>	set -- ls -rt $* 2>/dev/null
>	echo $1
>	}

Can you have functions in Bourne Shell scripts?  I thought this was 
only available in Ksh.



More information about the Comp.unix.shell mailing list