[ale] SHELL: get file name

Michael Kachline kachline at bass.compgen.com
Tue Jul 2 07:39:21 EDT 2002



> Zyman, Andy wrote
> > Hello,
> > Some time ago i had the question "how to get dirname". Now i decided to go
> > even further :) and get filename.
> > So here we go:
> > ABSFILE=/home/aaa/bbb/ddd/name.log
> 
> echo ${ABSFILE##*/}

	FILENAME="echo $fullfile  | `basename`"


				- Mike
--------------------------------------------------------------------
 Michael Kachline
 Systems Programmer

 Intec Telecom Systems
 Building G, 4th Floor                      
 5775 Peachtree-Dunwoody Road            
 Atlanta, GA  30342
--------------------------------------------------------------------


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list