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.
|