leah blogs

July 2013

28jul2013 · Summer of Scripts: 1t

1t is an old but useful tool I wrote. I like to have small windows showing logfiles with tail -F on my desktop, and it always annoyed me that this wastes one line, showing nothing but the cursor.

1t to the rescue, which disables the cursor and only outputs the final newline after the next line has arrived, thus making use of the last display line as well:

screenshot of 1t

Below:

% tail -F /var/log/messages.log | 1t

NP: Fliehende Stürme—Alles falsch

Copyright © 2004–2022