Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
pwg
7y ago
0 comments
Save
Share
The seq provided in the GNU toolset has a -w flag to turn on "equal width" mode, so one can also get zero padded numbers out (from GNU seq) by turning on that mode and zero padding the input:
$ seq -w 0001 0003 0001 0002 0003 $
0 comments
1 comments · 1 top-level
top
newest
oldest
anc84
7y ago
Nice, this works automatically like this:
$ seq -w 98 102 098 099 100 101 102
j
/
k
navigate · click thread line to collapse