#!/bin/sh # make fwendplanet curd="$PWD" cd "$1" || return 1 if [ -n "$2" ]; then old="$(($(date +%s) - ($2 * 24 * 3600)))" else old=0 fi awk -v old="$old" \ 'BEGIN{FS="\t";OFS="\t";} int($1)>=old{$2="["FILENAME"] "$2;print}' * | sort -k1,1rn | "$curd/fwendplanet_html.awk"