I'm currently trying to modify an echoed string of alphanumeric characters by piping it to sed. The area I'm interested in modifying is a block of numbers, which I would like to make 8 characters long by inserting an appropriate number of zeros to the front of it. For example:
Is it possible to do this with sed? The blocks of numbers I'm dealing with are less than 8 characters, if that helps. I'm not sure if this post helps. Thanks in advance!
Edit: there is only one block of numbers in each string.