Browsing the archives for the sed tag

Io ti odio!

in Informatica, Irlanda, Lamentazioni, Lavoro, Programmazione, Unix

Caro collega, stavolta lo scrivo qui: ieri ti ho odiato, per l’ennesima volta! Quando il nostro collega DBA indiano e’ venuto da me chiedendomi: «Angelo, come faccio ad inserire una stringa “NAME” su un file “tmp.log” da 1 GB tra la quarta e la quinta colonna con VI/VIM?» Tu hai sentito… ti sei voluto alzare… [...]

Share
33 Comments

Highlight text on the fly thanks to terminfo and sed.

in Informatica, Lavoro, Linux, Programmazione

A colleague today was looking for a way to pipe something to a command that highlights particular strings of text, keeping intact the stdin, similar to what you can see on some modern distros, ie Gentoo. Grep is not the way as it only prints the lines which contain the pattern that we are looking [...]

Share
5 Comments
  • Tags

  • Meta