Kenn Humborg wrote:
> On Fri, Mar 25, 2005 at 07:16:12PM +0100, Brian Foster wrote:
>>> OTOH, a specialist utility, such as the vis(1) Pike et.al.
>> mentioned, could/should be so extended. (now that I think
>> about it, I wonder if a charmap(5) file for use with (GNU)
>> iconv(1)/iconv(3) is possible to implement a "UCS `vis'"?)
>>> Blergh. Last time I ran iconv on a large file (a Wikipedia
> SQL dump), it seemed like it wanted to slurp the whole file
> into RAM, then transform it and output it. Not nice when the
> file is multiple-100MB.
>> Someone needs to rewrite iconv(1) as a more stream-oriented
> filter before doing what you suggest.
>> Maybe I should go log a bug against this...
absolutely.
Give recode a go:
$ echo "t€st" | recode ..ascii
tEURst
$ echo "t€st" | recode ..HTML
t€st
$ echo "t€st" | recode ../QP
t=E2=82=ACst
More recode recipies here:
http://www.pixelbeat.org/cmdline.html
--
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---
To view the contents of an archive (tar.gz, .rpm, .deb, ...)
use Midnight Commander (mc) (Just hit enter on the higlighted file).
This even works remotely (over ftp, fish, ...)
Non obvious keys for mc are documented here:
http://www.pixelbeat.org/lkdb/mc/html
--
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!