#/bin/tcsh foreach file (*.php) echo -n "<a href='$file'>"; echo $file|sed -e 's/-/ /g'|xargs echo -n; echo -n "</a>"; end