Compare time on two files in (T)CSH

Compare time on two files in (T)CSH

I really don't like BASH or SH so I try to find ways not to use it.

This is what I came up to for use instead of [< file > -lt < file2 >] compare

if ( (-M < file1 >) >= (-M < file2 > ) )


example

if ( (-M file1) >= (-M file2 ) ) then
echo "file1 is newer then file2"
endif

The added benefit is that you can change the order to do the same as -ot or add more compare options!

Joomla SEF URLs by Artio