Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: padding.



On 10/02/17 10:29 PM, Daniel Shahaf wrote:
% integer x
% echo ${(l:5::x:)x}
xxxx0

So, yes, use printf %05d.
Sure, printf is perhaps to be expected, but I wondered if zsh could do it directly.




Messages sorted by: Reverse Date, Date, Thread, Author