New answers tagged

0

The odd thing is that htop uses ncurses, which can draw lines with/without Unicode. However, looking at the source-code in CRT.c shows the explanation: #ifdef HAVE_LIBNCURSESW if(strcmp(nl_langinfo(CODESET), "UTF-8") == 0) CRT_utf8 = true; else CRT_utf8 = false; #endif CRT_treeStr = #ifdef HAVE_LIBNCURSESW CRT_utf8 ? ...


0

I've just checked sed's info page thoroughly (info sed) and done a fair bit of experimentation with various methods. My conclusion: You can't get the character represented by \x92 into a character class. However, you can use | instead. Here are some demonstrations: $ printf "a\x92\n" a? $ printf "a\x92\n" | sed 's/[a\x92]/P/g' P? $ printf "a\x92\n" | sed ...



Top 50 recent answers are included