Hi,I’ve a unix pipe delimited file as belowf1|f2|f3|f4|f5|f6My requirement is to pad spaces on the left to fields f2, f3 and f5.Field Lengths according to file layoutf2 – 4 char f3 – 5 charf5 – 3 charif my record is as below1|43|bc|h0|34|aOutput record should be as below1| 43| bc|h0| 34|aKindly provide a solution using awk or sed.Appreciate help!Regards,Soujanya
Source: The UNIX and Linux Forums