Thursday, June 1, 2023

Prepend line with line length with Linux command

 awk '{printf "%2d| %s\n",length,$0}' filename

Credit: https://www.baeldung.com/linux/print-longest-lines-in-file#introduction-to-the-problem

No comments:

Collectd PostgreSQL Plugin

I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...