Re: Bash substrings – just can’t figure it out…

Wes James comptekki at
Tue Jan 31 21:17:56 UTC 2012

On Tue, Jan 31, 2012 at 11:07 AM, Johnny Rosenberg
<gurus.knugum at> wrote:
> I have read some about those built in substring tools built into Bash,
> but still I don't understand them enough to use them.

Or use expr:

File="03. Rock Nuts.flac"
echo `expr "$File2" : '.*\. \(.*\)\..*'`


More information about the ubuntu-users mailing list