Fri, 11 Aug 2006, by rschulz@sonic.net:
Theo, Dylan,
On Friday 11 August 2006 17:34, Theo v. Werkhoven wrote:
...
Forgot to mention: if you only want the trailing spaces removed, use this form: ${file//% /}
I think you mixed up the arbitrary substitution syntax with the trailing stripping syntax. It should be:
"${file%% }"
You're right, but it wasn't immediately clear to me (late night, yada yada yada) if Dylan wanted all spaces removed or only the trailing ones, so I chose the arbitrary syntax. Tnx. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 9.2 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.8 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply.