Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Removing leading paces



* Mikael Magnusson (Wed, 14 Apr 2010 00:36:03 +0200)
> On 14 April 2010 00:29, Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
> wrote:
> > Quick question: how can I remove leading space from a string (for
> > example: string=" 456")?
> >
> 
> ${string## #} seems to work.

Right (in connection with "extendedglob"). Yesterday night I was trying 
"${string## }", "${string##  *}" and all that but it didn't work. Guess 
it was late :).

Thanks, Thorsten



Messages sorted by: Reverse Date, Date, Thread, Author