> I have a website (http://www.indianstatistics.org) published using
> orgmode. I have just migrated it to the new exporter. I would like to
> have a headline on the main page that lists (with links to) five most
> recently changed files. All org-files have a #+DATE field in the
> header which I update everytime I make changes on any page.
> 

Sorry, this was silly. Just needed a tiny bash script to throw org
syntax. The code below lists five most recently updated files.

#+begin_src sh :results raw :exports results
for filename in $(find -iname \*.org -type f -printf '%T@ %p\n' | sort
-n | tail -5 | cut -f2- -d" ")
do
   title=$(grep ^* $filename | head -n1 | cut -f2- -d" ")
   echo "*** [[file:$filename][$title]]" | head -5
done
#+end_src

Vikas

Reply via email to