Replace UTF-8 characters with shell perl – unix.stackexchange.com

How do I get perl to properly replace UTF-8 character from a shell? This is what I expect: $ echo ABCæøåDEF | perl -CS -pe "s/([æøå])/[\\1]/g" ABC[æ][ø][å]DEF This is what I get: $ echo ABCæøåDEF ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Replace UTF-8 characters with shell perl – unix.stackexchange.com"