#184 Allow $head to chomp trailing newline

SVN
open
nobody
None
5
2014-12-18
2013-06-08
Omega Weapon
No

I've just added the current CPU governor information to conky via:

${head /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 1}

however this outputs a superfluous newline (present in the actual file I'm sure) that breaks up the line this output appears on.

cat properly chomps the newline:

${exec cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor}

but this is less efficient.

Please could $head have an option to chomp trailing newlines?

Thanks

Discussion