[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] basename for n levels
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] basename for n levels |
Date: |
Wed, 10 Jun 2015 08:58:31 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Wed, Jun 10, 2015 at 07:54:59AM -0500, Peng Yu wrote:
> On Wednesday, June 10, 2015, Dennis Williamson <address@hidden>
> wrote:
> > or you can use read and an array
> >
> > IFS=/ read -a parts <<< "$var"
> >
>
> This is not robust wrt multiple consecutive slashes.
Demonstrate the failure. Give an example input, the desired output, and
the actual output.
Re: [Help-bash] basename for n levels, Eric Blake, 2015/06/10