# this works if you just type it in:. set newest = ` ls -l newest.html | sed -e "s/.*->\(.*\)/\1/g" ` echo $newest rm -f newest.html # preceding command is not needed to prevent link to self. If newest file is unchanged, find conditions will not be satisfied.. # 3/14 find only seems to pass through once. # 3/14 when "newest.html" is browsed, relative links are messed up. the # browser has to be redirected rather than the server. This means that newest.html has to be a real html file and the macro has to modify its contents. find . -follow \( -path '*/noshow/' -prune \) -o -name '*\.*htm*' -type f -newer $newest -not -path '*/\.*' -exec ln -sf {} newest.html \;