I am new to awk and writing a script using awk. I have file containing fixed length records, I wish to extract 2 substring(each substring is padded with zeros on left e.g 000000003623) and add each substring respectively for every record in the file to get total sum of respective substring for all the records.I have written a script as below but not getting the output. Any help would be highly appreciated.
Sample record is:
01803000000000012045005020960073220120330080844355718025772507891000000821020965088000000000000000000000000DFE02E05000000000000000000000000D37304F41366904036roaming.skysundi.com mnc005.mcc450.gert 121000000000000000000000000B4878544c0e501690130393039062000409C600000804F4070200000800000000000000000000000000000000000006000000003623