I'm trying to move a script from invoking lots of sed and awk to bash builtins and I'm stumped on something I'm sure is simple.

Is there a tr equivalent to the following?
sed 's/[^[:alnum:]]//g'

I just can't seem to get tr -d to accept a negative matching set, but perhaps that's not possible?

Thanks in advance

-IY
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to