Wanted: How to strip off pathnames to obtain filenames.

Juergen Wagner gandalf at csli.STANFORD.EDU
Tue Sep 6 10:50:01 AEST 1988


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 at csli.stanford.edu
Center for the Study of Language and Information (CSLI), Stanford CA



More information about the Comp.unix.questions mailing list