i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...
for f in *.tiff; do convert -median 2 $f ../outDir/$f; echo $f; done