Отключение / повторное включение ядер через ядро ​​в системах Threadripper / EPYC [закрыто]

perl -F'\s+|;' -pale '$" = ",";
   $_ = "$F[0],[" . join("],[", map { "@F[2*$_,2*$_-1]" } 1 .. @F/2) . "]";
' yourfile

Brief

The field separator are set at multiple whitespaces or semicolon. Then
excepting for the 1st field, the rest come in pairs. So keeping aside
($F[0]) we look at 2 fields at a time, flip them, & join all these pairs
with "],[".
1
23.04.2018, 15:22
0 ответов

Теги

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