Monday, 1 February 2010

In-line text replacement / ascii filter

The file conky is displaying from mplayer, contains non-ascii characters.

Filter its display.

http://www.devdaily.com/unix/edu/un010011/

shows the `tr' command helps:

tr -cd '\11\12\40-\176' < $INPUT_FILE > $OUTPUT_FILE

Those are octal numbers?! Unusual.

No comments:

Post a Comment