我有两个文件一个是sg\u fx\u cur\u rates.csv需要从这个文件中获取记录计数和校验和,并与其他文件sg\u fx\u cur\u mapping\u 20170221.tok进行比较
第一个文件
head -10 sg_fx_cur_mapping_20170221.csv
UNIQUE IDENTIFIER AC CODE LONGNAME RISK FACTOR IDENTIFIER INSTRUMENT TYPE QUOTED CURRENCY BASE CURRENCY GLOBAL RATE LOCALE MXG_CURRENCY MXG_PIPSIZE MXG_LOCALE
SC.1000010374 FX_AED*USD_SPOT_GBL FX_AED*USD_SPOT_GBL FX_SPOT AED USD 1 UK USD-AED UK
SC.1000010375 FX_AMD*USD_SPOT_GBL FX_AMD*USD_SPOT_GBL FX_SPOT AMD USD 1 UK
SC.1000010376 FX_ANG*USD_SPOT_GBL FX_ANG*USD_SPOT_GBL FX_SPOT ANG USD 1 UK USD-ANG UK
SC.1000010376 FX_ANG*USD_SPOT_GBL FX_ANG*USD_SPOT_GBL FX_SPOT ANG USD 1 UK USD-ANG SG
SC.1000010376 FX_ANG*USD_SPOT_GBL FX_ANG*USD_SPOT_GBL FX_SPOT ANG USD 1 UK USD-ANG US
SC.1000010377 FX_AOA*USD_SPOT_GBL FX_AOA*USD_SPOT_GBL FX_SPOT AOA USD 1 UK USD-AOA UK
SC.1000010377 FX_AOA*USD_SPOT_GBL FX_AOA*USD_SPOT_GBL FX_SPOT AOA USD 1 UK USD-AOA SG
SC.1000010378 FX_ARS*USD_SPOT_GBL FX_ARS*USD_SPOT_GBL FX_SPOT ARS USD 1 UK USD-ARS UK
SC.1000010380 FX_BBD*USD_SPOT_GBL FX_BBD*USD_SPOT_GBL FX_SPOT BBD USD 1 UK USD-BBD UK
第二个文件
cat sg_fx_cur_mapping_20170221.tok
CHECKSUM|0b4e6c5935c39ae311dd477e216892d5
RECORDCOUNT|00000000681
1条答案
按热度按时间ugmeyewa1#
由于我们没有太多线索(使用哪种校验和算法?),这里有一个选项:
这样使用: