[ale] echo filename (without extension)

Pete Hardie pete.hardie at sciatl.com
Tue Dec 17 17:02:02 EST 2002


Christopher Bergeron wrote:
> Here's another quick one ...  How can I echo just the filename and not 
> the extension in this script?
> 
> for i in `\ls M*`; do
>  echo $i
> done

echo `basename $i`



-- 
Pete Hardie                   |   Goalie, DVSG Dart Team
     posting from, but not     |
	speaking for:             |
Scientific Atlanta, Digital Video Services Group



     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer. 

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list