#!/bin/sh while read path ; do echo "## list_files [$path]" eval path=$path # expand ~ if [ -e $path/.meta/files ] ; then cat $path/.meta/files else find -L $path -printf "%y %s %p\n" | tee $path/.meta/files fi done