Glenn Fowler wrote:
the new form is %0<width>s where <width> is a positive integer at most the <width> *trailing* characters of the string are printed (it truncates from the head) this form %.<width>s at most the <width> *leading* characters of the string are printed (it truncates from the tail)for example: $ printf $'%.4s\n' 123456789 1234 $ printf $'%04s\n' 123456789 6789 this is handy when listing column limited data where the significant info is in the tail (e.g., path names)
Thanks Glenn. I see how that could be useful. _______________________________________________ ast-developers mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-developers
