Path: utzoo!attcan!uunet!husc6!cmcl2!nrl-cmf!ames!pasteur!ucbvax!decwrl!labrea!csli!gandalf From: gandalf@csli.STANFORD.EDU (Juergen Wagner) Newsgroups: comp.lang.c Subject: Re: Wanted: How to strip off pathnames to obtain filenames. Message-ID: <5391@csli.STANFORD.EDU> Date: 6 Sep 88 00:39:16 GMT References: <5968@ihlpf.ATT.COM> <194@dcs.UUCP> <1071@cbnews.ATT.COM> <8129@elsie.UUCP> Reply-To: gandalf@csli.stanford.edu (Juergen Wagner) Organization: Center for the Study of Language and Information, Stanford U. Lines: 10 If you are using csh, how about: % set foo = /usr/john/foo/bar/src/misc/other/bugs/nil.bang % echo ${foo:t} nil.bang % -- Juergen "Gandalf" Wagner, gandalf@csli.stanford.edu Center for the Study of Language and Information (CSLI), Stanford CA