#!/bin/sh for f in ./blog/*.md ; do d="$("$ZS" var "$f" date)" if [ ! -z $d ] ; then timestamp="$(date --date "$(echo "$d" | awk -F- '{print $3"-"$2"-"$1}')" +%s)" url="$("$ZS" var "$f" url)" title="$("$ZS" var "$f" title)" desc="$("$ZS" var "$f" description)" echo $timestamp \ "" \ "$title" \ "http://darkuss.twoexem.com/$url" \ "$desc" \ "$(date --date @$timestamp -R)" \ "http://darkuss.twoexem.com/$url" \ "" fi done | sort -r -n | cut -d' ' -f2-