Search Results

Search: Posts Made By: arunkumar_mca
764
Posted By arunkumar_mca
With the previous thread I tried to do like and...
With the previous thread I tried to do like and getting all zeros

awk '{ printf "%03d",$9}' myfile

---------- Post updated at 10:51 PM ---------- Previous update was at 10:48 PM ----------
...
764
Posted By arunkumar_mca
Prepend 0 to a field in a record
Hi All,

I have a file like below. In the field 9 I am having 14,014,3,001/009 on the records. I want to convert the field to a three digit value. For example 14 should 014 , 3 should 003

...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy