Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 .tsv 文件中有一个数字列表(每个数字少于 6 位): 4559 123 等
我需要一个6位数字的列表: 004559 000123 等
非常感谢
bash 中的 printf 正是这样做的——
printf "%0.6d" $value