Posted by Tobias Mueller 2016-06-12
In order to remove whitespace produced by lsof output you need to trim it with sed.
sed -E ’s/[[:space:]]+/ /g‘
Watch for the uppercase -E and [[:space:]]
email | twitter | facebook