#!/bin/bash rm -rf byname mkdir byname # Create soft-links for all of the files based on their names for i in code/* do t1=`grep '^.\///g' | sed -e 's/<\/TITLE>//g'` t2=`echo $t1 | sed -e 's/\//-/g'` if [ ! -e "./byname/"$t2".html" ]; then ( cd byname ; ln -s "../"$i $t2".html" ) fi done # Create soft-links for all the symbols based on their names for i in names/* do t1=`grep '^