1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh dir="$1" for f in ${dir}/*; do echo "<tr>" echo " <td>${dir}</td>" echo " <td>`basename ${f}`</td>" echo " <td></td>" echo "</tr>" done