On 02/24/2012 06:22 AM, 夜神 岩男 wrote: > 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 aa="%1#2@3abc"; echo "${aa//[^[:alnum:]]}" -- Anthony - http://messinet.com - http://messinet.com/~amessina/gallery 8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
Attachment:
signature.asc
Description: OpenPGP digital signature
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx 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