ls -lt $(find . -type f) |\ cut -c 44- |\ while read mon day timeyr path ; do dir=$(dirname $path | cut -c 3-) file=$(basename $path) case $file in *.txt | *.org ) title=$(head -n 1 $path) ;; *.html ) title=$(grep -i "" $path | sed -e 's/<[^<]*>//g') ;; * ) title=$file ;; esac echo "$mon $day $timeyr $path $dir $file $title" done