Bash script align the output
#!/bin/bash
for b in "H HU HUU PHAN PHANVAN"
do
echo "$b"
for c in $b
do
printf "%-50sOK\n" "$c"
done
done
Running bash script
[[email protected] Downloads]$ ./studyscript.shThe display as below
Thanks for reading Bash script allign the output My blog Zimbra Mail Server,linux,bash script,centos,linux command I hope this is useful.