Miscellany
public shellscript v1 · immutableNOHTMLINKS=$( grep -c '<a href="[^.]*\.htm' index.html ) HTMLINKS=( $(grep -r '<a href="[^.]*\.htm' $opt2) )HTMLINKSDES=( $(sed -n '/<a href="[^.]*\.htm"/s/[^>]*>\([^<]*\).*/\1/p' $opt2) ) x=0; for i in "${HTMLINKSDES[@]}"; do Description=${HTMLINKSDES[$x]}; Link=${HTMLINKS[$x]}; let x=x+1; Link2=${HTMLINKS[$x]} ; echo "<tr><td>"$Description"</td><td>"$Link"</td></tr>" >> $OUTPUTFILE; done