rm list #ls -c1 *.pgm | sort >>list find ./ -type f -printf "%f\n" | grep pgm | sort >>list