Saturday, October 2, 2021

How to print the longest line in a file?

awk 'length > max_length { max_length = length; longest_line = $0 } END { print longest_line }' ./text


From: https://unix.stackexchange.com/a/24510

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-postgresql