nifty little tool -- histring

[instigated by the fact that aamath was newly added to grml repository]
Hi,
Like to work in console more than X? Like text tools more than GUI ones? Then this small tools is definitely for you -- histring.
http://www.kw.kernel.org/pub/mirrors/freebsd/ncvs/ports/misc/histring/
histring simply highlights strings using ANSI terminal escape codes. but the usage is endless.
I almost use it everywhere in my script where I need a quick peek into large output. For example,
zip -t *.zip 2>&1 | histring -fEi 'warning |bad CRC|error: ' | less
will tell me if any of the zips files has any problem. Once you get used to it, you can't image the life without it.
The following is another nifty alias that I use more often than anything else, to accept output from diff or rcsdiff to highlight diffs.
histring -fE '^Comparing files .*|^diff .*' | histring -c yellow -fE '^-.*' | histring -c green -fE '^+.*'
With that, who needs to wait for 0.5s for tkdiff? :-) Also, with that I wrote another alias to compare rcs file version by version. I guess no other diffing tool have such ability to show how things evolve.
Hope we can have that in grml repository soon...

On Sun, 12 Nov 2006 00:10:09 -0500, T wrote:
Then this small tools is definitely for you -- histring.
http://www.kw.kernel.org/pub/mirrors/freebsd/ncvs/ports/misc/histring/
Oops, not there,
http://ftp.nl.vim.org/FreeBSD/ports/amd64/packages-5.5-release/misc/histring...

* T mlist4suntong@yahoo.com [20061112 06:15]:
[...]
http://www.kw.kernel.org/pub/mirrors/freebsd/ncvs/ports/misc/histring/
histring simply highlights strings using ANSI terminal escape codes. but the usage is endless.
Very nice tool!
[...]
Hope we can have that in grml repository soon...
http://hg.grml.org/histring/ http://grml.org/repos/histring_1.1.0-1_i386.deb
regards, -mika-
Teilnehmer (2)
-
Michael Prokop
-
T