Разбор сообщений FIX для дальнейшей аналитики

Если вы ищете веб-ресурсы, я нашел это , чтобы быть полезным для большинства моих применений.

2
28.05.2018, 11:10
2 ответа
  perl -F= -pale '$_ = sprintf "%.7s %.4f", @F[-5,-3]'   fix.log

¶ cómo funciona:

 °  split each line as it comes on equal to sign. Store the split values in the array @F

 °  counting from the end of the array @F, the last but 4th  and last but 2nd fields are what we need.

 °  we require the 7 chars and accuracy upto 4 digits.

 °  stuff these in $_ and -p option auto prints it. 
0
27.01.2020, 22:31

Seguir awkpuede ayudarte aquí.

awk -F"=" '{sub(/[0-9]+/,"",$(NF-4));print $(NF-4),$(NF-2)+0}' OFMT="%.05g"  Input_file
0
27.01.2020, 22:31

Теги

Похожие вопросы