help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Basename and extension


From: Greg Wooledge
Subject: Re: [Help-bash] Basename and extension
Date: Tue, 14 Feb 2012 10:51:53 -0500
User-agent: Mutt/1.4.2.3i

On Tue, Feb 14, 2012 at 11:49:12PM +0800, J. M. wrote:
> extension=${filename##*.}
> filename=${filename%.*}
> 
> Why above two gets work, I don't understand.

http://mywiki.wooledge.org/BashFAQ/100 (and many others)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]