1 example for printf
# Getting printf to print in nicely aligned columns # Here, we print three variables in columns of size 30, 20 and 20 respectively printf "%-30s | %-20s | %-20s" "$var1" "$var2" "$var3"
# Getting printf to print in nicely aligned columns # Here, we print three variables in columns of size 30, 20 and 20 respectively printf "%-30s | %-20s | %-20s" "$var1" "$var2" "$var3"