#!/bin/sh 
count=0
for i in $HOME/.mnote/note_*
do
	[ ! -f $i ] && continue
	count=`expr $count + 1`
	title=`more $i|head -2|grep Title|cut -b 9-`
	data=`more $i|head -2|grep Date|cut -b 8-`
	echo "note $count on $title made $data"
done

if [ $count = 0 ]
then
        echo "There are no notes."
fi	
