Tell zpool-list(8) to format output rather than modifying it afterwards. Furthermore, pool names may contain spaces and would thus break due to awk(1)'s word splitting.
Tell zpool-list(8) to format output rather than modifying it afterwards. Furthermore, pool names may contain spaces and would thus break due to awk(1)'s word splitting.