Using Solaris 9 and building a Korn shell script with the following statement -
echo $input | sed -e 's/[^[A-Za-z0-9]]//g'
The statement fails to strip any special characters from $input if they are entered.
Changing the range to the POSIX option of :[alnum]: has no affect on the string being parsed correctly either.
The same statement under Red Hat Linux 8 and 9 executes as expected. I am just not sure if I am dealing with a parser issue or a Solaris UNIX issue.
Thanks in advance,
Steve
echo $input | sed -e 's/[^[A-Za-z0-9]]//g'
The statement fails to strip any special characters from $input if they are entered.
Changing the range to the POSIX option of :[alnum]: has no affect on the string being parsed correctly either.
The same statement under Red Hat Linux 8 and 9 executes as expected. I am just not sure if I am dealing with a parser issue or a Solaris UNIX issue.
Thanks in advance,
Steve