Artificial intelligent assistant

How to remove 0 from the second column in a file I ahve a script which fetches user name and mobile from a file in following format **Current Format** username mobile zzz 03333012345 123 03212334343 245 3712323689 Now I want that if the mobile number starts from '0' then only '0' should be removed, so all mobile numbers should be displayed like **Required format:** username mobile zzz 3333012345 123 3212334343 245 371232368 (& if the mobile doesn't have zero in start, leave it as it is)

You can use the following awk for this to ensure only the leading 0s from the second column are removed


awk '{gsub("^0","",$2); print $1,$2}' yourfile.txt

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy c1d84ca0ad03213486abecc2d7f4a394