gdbtek / linux-cookbooks

MIT License
145 stars 63 forks source link

ubuntu 22.04 printTable #49

Open LogSpider opened 2 years ago

LogSpider commented 2 years ago

Hello, used some of your useful functions like printTable. Under Ubuntu 22.04 table output is weird. I think, somehow, output="$(echo -e "${table}" | column -s '#' -t | awk '/^\+/{gsub(" ", "-", $0)}1')" does not replace empty spaces, but why....

Output looks like this: image

j4rosz commented 1 year ago

https://github.com/gdbtek/linux-cookbooks/issues/45#issuecomment-1046242225 have you tried this?