bash printf align output


for l in 1 10 100 1000 10000 100000 1000000; do printf "%7s %s\n" $l "test string"; done

      1 test string
     10 test string
    100 test string
   1000 test string
  10000 test string
 100000 test string
1000000 test string
Views All Time
Views All Time
39
Views Today
Views Today
1

Leave a Reply

Your email address will not be published. Required fields are marked *