12 Aug
2006
12 Aug
'06
00:45
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%% }" And for the leading ones: "${file## }" The "EXPANSION" secion of the BASH manual page details these and other similar expansion substitutions available in BASH.
Theo
Randall Schulz