Afficher un message
Vieux 28/05/2007, 05h02   #3
Dave Kelly
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Using basename to strip suffix

Janis Papanagnou wrote:

> CAPTION=$( basename "$filename" .jpg )
>
> or using shell builtins instead of costly external processes...
>
> CAPTION=${filename%.jpg}
>
>
> Janis


Worked like a charm. Thanks.
Where would I go to read/learn about some of this stuff. A google search
did not turn up any interesting leads.
Is there a better place than 'info coreutilities'? Does this cover builtins?

Thanks again.
Dave


--
A little rum in the morning coffee. Just to clear the cobwebs, ya know.
  Réponse avec citation
 
Page generated in 0,05648 seconds with 9 queries