#!/bin/sh # Usage 'lsee file' # translates CR as newline # translate _ and ^ # changes font-change control-characters ^F^x # to linux color escapes: # A regular # B bold / bright # C comment yellow # D big/bold red export LANG=en_US.UTF-8 tr '\r' '\n' < $1 | \ sed -e 's/_/←/g' \ -e 's/^/↑/g' \ -e 's///g' \ -e 's///g'\ -e 's///g' \ -e 's///g'\ -e 's///g'\ -e 's//:/g' \ | less -r