Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
On 7/5/2012 8:00 PM, Daniel Feenberg wrote: > "cat -v" has acquired something new called "M-" notation. It is > mentioned but not described in the man page for cat, -v, --show-nonprinting use ^ and M- notation, except for LFD and TAB "--show-nonprinting" seems self-explanatory. > but apparently tr doesn't support it. Because the option is for humans to read, not for programs to parse. In other words, it's "make all the nonprinting characters printing for my benefit just this once." > Any suggestions on how to delete all the "M- " characters from a > file? You don't, because that includes tabs and end-of-line characters. If you want to remove specific characters then do so with sed or 'tr -d' and with the appropriate interpreted sequences or octal codes. If you try to do it with 'tr -d [:cntrl:]' then you'll end up with a mess. -- Rich P.
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |