On Fri, July 16, 2004 16:07, Kyle Wheeler said:
>
> Well, for a simple thing like this, you don't have to use perl. Sed will
> give you regex translation. And if you're just converting one character into
> another, you
> can use tr.
>
> | sed 's/\./_/g'
>
>
> or
>
> | tr . _
Kyle,
"tr" is my fallback option if I can't come up with anything else.
Something like this should do the trick:
FOLDER_NAME=`$ECHO ${MATCH2} |${TR} . _`
if (${RETURNCODE})
{
FOLDER_NAME=${DEFAULT_FOLDER_NAME}
}
Thanks,
R.
--
http://robinbowes.com