Friday, December 30, 2022

bash script print with tab

the echo mode with '\t' character allows to do this, but the most useful one is printf 

printf "%30s %10s %30\n" "${Name}" "${percentage}" 

This gives nice output 

No comments:

Post a Comment