Existem duas maneiras:
- Use a função bash '
printf
para imprimir e formatar sua saída (em vez deecho
) - Use o comando
column -s : -t
./list_packages openSUSE-2016-254 | column -s : -t
zypper-aptitude.noarch 1.12.23-1.1 update needed
zypper-log.noarch 1.12.23-1.1 update needed
libsolv-debugsource None not installed
libsolv-demo None not installed
libsolv-demo-debuginfo None not installed
libsolv-devel None not installed
libsolv-devel-debuginfo None not installed
libsolv-tools 0.6.14-1.1 update needed
libsolv-tools-debuginfo None not installed
perl-solv None not installed
perl-solv-debuginfo None not installed
python-solv 0.6.14-1.1 update needed
python-solv-debuginfo None not installed
ruby-solv None not installed
ruby-solv-debuginfo None not installed
libzypp 15.19.5-1.1 update needed
libzypp-debuginfo None not installed
libzypp-debugsource None not installed
libzypp-devel None not installed
libzypp-devel-doc None not installed
zypper 1.12.23-1.1 update needed
zypper-debuginfo None not installed
zypper-debugsource None not installed