in reply to Re: Re: Re: Re: No other way?
in thread No other way?

Well, in order to do a substitution you might have to assign to a new variable so as not to modify the original value, and that could be a worse readability hit than the grep; depends on the context.

PS: I think you meant s#^/+##, what with the possibility of multiple leading slashes.

    -- Chip Salzenberg, Free-Floating Agent of Chaos