Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!rutgers!orstcs!neptune!pvo1478 From: pvo1478@neptune.uucp (Paul O'Neill) Newsgroups: comp.unix.questions Subject: Re: How to find directory name at end of symbolic links Summary: set hardpaths Message-ID: <9402@orstcs.CS.ORST.EDU> Date: 14 Mar 89 01:12:49 GMT References: <10@sherpa.UUCP> <9745@smoke.BRL.MIL> <304@unet.UUCP> Sender: usenet@orstcs.CS.ORST.EDU Reply-To: pvo1478@oce.orst.edu (Paul O'Neill) Distribution: na Organization: College of Oceanography, Oregon State Univ., Corvallis, Or. Lines: 18 In article <304@unet.UUCP> maine@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@oce.orst.edu Coastal Imaging Lab OSU--Oceanography Corvallis, OR 97331 503-754-3251