eileen1017
MIS
I have a file load_bom.ctl and the content of the file as follows:
BMIV7.5-46-60K0,INV,BMIV7.5-46-60K0.dat
DMIV7.5-46-60K0,INV,DMIV7.5-46-60K0.dat
CMIV7.5-46-60K0,INV,CMIV7.5-46-60K0.dat
AMIV7.5-46-60K0,INV,AMIV7.5-46-60K0.dat
EMIV7.5-46-60K0,INV,EMIV7.5-46-60K0.dat
I need to write a perl script that reads this file and sort the file content in alphabetical order. How will I be able to achieve this? Please help. Thanks.
BMIV7.5-46-60K0,INV,BMIV7.5-46-60K0.dat
DMIV7.5-46-60K0,INV,DMIV7.5-46-60K0.dat
CMIV7.5-46-60K0,INV,CMIV7.5-46-60K0.dat
AMIV7.5-46-60K0,INV,AMIV7.5-46-60K0.dat
EMIV7.5-46-60K0,INV,EMIV7.5-46-60K0.dat
I need to write a perl script that reads this file and sort the file content in alphabetical order. How will I be able to achieve this? Please help. Thanks.