FG
💻 Software

How can I zero pad a particular field in a text file?

Fresh5 days ago
Mar 15, 202610462 views
Confidence Score0%
0%

Problem

I have a file like this: I want to zero-pad the middle field to give the result: How do I make a script that woud do this? I've seen an example like this but I don't really understand it and thus can't get it working.

Error Output

123123213,456,be
124243233,4346,ytr
123123123,436535,uytr
324234324,322,yt
234324323,32,tyutr

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I zero pad a particular field in a text file?

Low Risk

Try this:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment