Re: Bash substrings – just can’t figure it out…
- From: "Cybe R. Wizard" <cybe_r_wizard@xxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2012 12:39:29 -0600
On Tue, 31 Jan 2012 12:31:06 -0600
"Cybe R. Wizard" <cybe_r_wizard@xxxxxxxxxxxxx> wrote:
On Tue, 31 Jan 2012 19:07:20 +0100
Johnny Rosenberg <gurus.knugum@xxxxxxxxx> wrote:
I have an example here:
File="03. Rock Nuts.flac"
echo "${File##N*s}"
The result should be ”03. Rock .flac”, shouldn't it? Obviously not,
because the result is ”03. Rock Nuts.flac”, which is exactly the
original string.
So what am I missing?
Knowing little about BASH, I'm nevertheless immediately drawn to the
fact that your example is missing the space you wish in our output.
Cybe
Just noticed that you're trying to pull out, "Nuts."
Sorry for the noise.
Cybe R. Wizard
--
Strength through Unity.
Unity through faith.
Adam Sutler
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: Bash substrings – just can’t figure it out…
- From: Johnny Rosenberg
- Re: Bash substrings – just can’t figure it out…
- References:
- Bash substrings – just can’t figure it out…
- From: Johnny Rosenberg
- Re: Bash substrings – just can’t figure it out…
- From: Cybe R. Wizard
- Bash substrings – just can’t figure it out…
- Prev by Date: Re: Bash substrings – just can’t figure it out…
- Next by Date: Re: Bash substrings – just can’t figure it out…
- Previous by thread: Re: Bash substrings – just can’t figure it out…
- Next by thread: Re: Bash substrings – just can’t figure it out…
- Index(es):
Relevant Pages
|