My requirement is to pad spaces on the left to fields f2, f3 and f5. Field Lengths according to file layout f2 - 4 char f3 - 5 char f5 - 3 char If my record is as below
1|43|bc|h0|34|a
Output record should be as below
1| 43| bc|h0| 34|a
Kindly provide a solution using awk or sed. Appreciate help! Regards,Soujanya
But this awk statement becomes too lengthy if my source file has around 25 fields or more. So let me know if any simple awk or sed can be used to achieve the same. Regards,Soujanya