David Clarke wrote: > > On Wed, 14 Nov 2001, Me wrote: > > > > filename=$(basename `ls -la /bin/mt | awk '{print $11}'`) > ^^^^^^^ should have been linkname, I was > just testing it with mt. > Try it when the link points to a directory :-) It's not quite right cheers, Anthony