On Fri, Apr 24, 2009 at 11:32:09AM -0600, Bill Gradwohl wrote: > What I want to do is remove all the space and tab characters.
parameter=${parameter//[[:space:]]/} or parameter=${paramter//[ $'\t']/} >From an older bash(1) manual: Words of the form $'string' are treated specially. The word expands to string, with backslash-escaped characters replaced as specifed by the ANSI C standard. Bash 4 manual: Words of the form $string are treated specially. The word expands to string, with backslash-escaped characters replaced as specified by the ANSI C standard. Oops... looks like the single quotes vanished somewhere along the way there.