Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!jarthur!uunet!racerx!ken From: ken@racerx.UUCP (Ken Hardy) Newsgroups: comp.unix.shell Subject: Re: Help with this script Message-ID: <560@racerx.UUCP> Date: 10 Apr 91 21:53:33 GMT References: <1991Apr9.164257.9128@agate.berkeley.edu> <1991Apr9.175008.12044@leland.Stanford.EDU> Organization: Bridge Information Systems, St. Louis Lines: 14 >How about: > > cd `find . -name -type d -print` If 'find' finds more than one directory that matches the pattern, you're in trouble. How about: cd `find . -name -type d -print | head -1` or cd `find . -name -type d -print | tail -1` -- Ken Hardy uunet!racerx!ken ken@racerx.UUCP