Language Selection

English French German Italian Portuguese Spanish

Highlighting strings in text output with histring

Filed under
HowTos

Recently there was an article on this site discussing adding colour highlighting to grep. Now we're going to look at a general purpose highlighting tool called histring.

If you like to work in console more than X, and like text tools more than GUI ones then histring is definitely a tool for you!

histring simply highlights strings using ANSI terminal escape codes. It is extremely small and lighting fast. I almost use it everywhere in my script where I need a quick peek into large output. Moreover, you almost don't need to learn it, as its syntax is almost identical to grep.

The following two example will turn you into a histring-pro:

Full Story.

More in Tux Machines

Dale Raby: How do you Fedora?

Dale started using Linux around 1999 when he became disconcerted with his Windows 95 computer and a young clerk in an office supply store told him about Linux. “I started reading some of the magazines, most notably Maximum Linux and eventually got to know their senior editor, Woody Hughes and Show Me the Code columnist Mae Ling Mak,” said Raby. His first distribution was Mandrake 6.5 which came in a box with a boot floppy. Raby manages a small gun shop in Green Bay, Wisconsin. He is also an author with four published books: The Post-Apocalyptic Blacksmith, 777 Bon Mots for Gunslighers and Other Real Men, The Wives of Jacob I, and In the Beginning. Read more

Ubuntu GNOME 16.04.1 LTS Released but Still Doesn't Uses the GNOME 3.20 Stack

As we reported last week, Canonical published the first point release of its long-term supported Ubuntu 16.04 LTS (Xenial Xerus) operating system, offering users new installation mediums with all the updates made available since April 21, 2016. Read more

KDE Applications 16.08 Software Suite Is in Beta, Final Release Coming August 18

Now that the third and last maintenance update of the KDE Applications 16.04 software suite has debuted, it's time for us to take the Beta build of the next major KDE Applications release for a test drive. Read more

Android Leftovers