How to find directory name at end of symbolic links

Paul O'Neill pvo1478 at neptune.uucp
Tue Mar 14 11:12:49 AEST 1989


In article <304 at unet.UUCP> maine at unet.PacBell.COM (Dennis J. W. Maine) writes:
>I am using SunOs 3.5 and want to know how to find out the directory
>name at the end of a series of symbolic links.  ...............

How about:

#!/bin/csh -f
set hardpaths
cd $argv[1]
echo $cwd

Or set hardpaths in your working shell to always see where you really are.


Paul O'Neill                 pvo at oce.orst.edu
Coastal Imaging Lab
OSU--Oceanography
Corvallis, OR  97331         503-754-3251



More information about the Comp.unix.questions mailing list