pad
Pad a string on the left to the given length. Default pad character is space.
string(required): the string to padlength(required): target lengthchar(optional): pad character (default" ")
bash
echo '{"id": "42"}' | utlx -e 'pad($input.id, 5, "0")'
# "00042"utlx
{
invoiceNo: pad(toString($input.seq), 8, "0")
}