Help with this script

Ken Hardy ken at racerx.UUCP
Thu Apr 11 07:53:33 AEST 1991


>How about:
>
>	cd `find . -name <argument> -type d -print`

If 'find' finds more than one directory that matches the pattern, you're in trouble.
How about:
	cd `find . -name <argument> -type d -print | head -1`
  or
	cd `find . -name <argument> -type d -print | tail -1`
	

-- 
Ken Hardy		uunet!racerx!ken		ken at racerx.UUCP



More information about the Comp.unix.shell mailing list