#! /bin/sh cat $1; shift echo '
' for i in "$@"; do size=$(du --si $i | cut -f1) desc=$(sed -n '1,3 s/.*\(Description: \|Title: \|-- \)//p' $i) fn=$(basename $i) echo "
$fn ($size)
" echo "
$desc
" done echo '
'