Comparing modified times of files
Kris Stephens [Hail Eris!]
krs at uts.amdahl.com
Wed Mar 27 01:37:52 AEST 1991
In article <6067 at iron6.UUCP> yeates at motcid.UUCP (Tony J Yeates) writes:
>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.
Well, it works in my Bourne shell. :-)
...Kris
--
Kristopher Stephens, | (408-746-6047) | krs at uts.amdahl.com | KC6DFS
Amdahl Corporation | | |
[The opinions expressed above are mine, solely, and do not ]
[necessarily reflect the opinions or policies of Amdahl Corp. ]
More information about the Comp.unix.shell
mailing list