Wednesday, 31 July 2019

HOW TO LEFT PAD NUMBERS IN AWK

Occasionally when working in a Linux/Unix environment comes the need to left pad numbers with zeros (add leading zeros to numbers). This is often done to make a series of numbers the same length. An example of doing this with awk can be seen below:

0 comments:

Post a Comment