Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

zsh leading zeros

% value=314
% echo ${(l:10::0:)value}
0000000314
% echo $value
314
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #zsh #leading #zeros
ADD COMMENT
Topic
Name
7+5 =