3 ms·
I'm a big fan of "one-liners". Granted they're not always the best solution but they're hard to beat. Something like printing the disk space across filesystems:
by artisin 8y ago
I'm a big fan of "one-liners". Granted they're not always the best solution but they're hard to beat. Something like printing the disk space across filesystems:
df -m | awk '{p+=$3}; END {print p}'
I bought a book titled "Awk One-Liners Explained" on a whim a while back. And to this day, I consider it to be umong the most "useful" $6 I've ever spent in terms of productivity.