i have one file which contains data like the below
DE_CODE|AXXANY|APP_NAME|TELCO|LOC|NY
DE_CODE|AXXATX|APP_NAME|TELCO|LOC|TX
DE_CODE|AXXABT|APP_NAME|TELCO|LOC|BT
DE_CODE|AXXANJ|APP_NAME|TELCO|LOC|NJ
DE_CODE|AXXANJwt|APP_NAME|TELCO|LOC|WT
am going use a for loop or whole loop which will convert each line and process it.
could someone please help it
DE_CODE,APP_NAME and LOC are the hearder and AXXANY,TELCO and NY are data
i each looping am assigning the data like the below.
DE_CODE = AXXANY
APP_NAME= TELCO
LOC = NY
i want to a script to operate this. even the input line can extend futher after loc also in future.