#!/bin/sh
while IFS='' read LINE; do
    F=${LINE%	*}
    T=${LINE##*	}
    T=${T## }
    T=$( printf '%s' "$T" | tr '`' "'" )
    L='`raw <raw/'$F'>`__'
    if test -f head/"$F".html; then
	L="$L "'`html <head/'$F'.html>`__'
    fi
    if test -f raw/"$F"; then
	W=$(wc <raw/"$F")
    else
	W=''
    fi
    printf "%s\t%s\t%s\t%s\n" "$L" "$F" "$T" "$W"
done <files.txt