Thursday, June 28, 2018

VIM 正規化 取代方法

    0, 'biTp_fwcode_udp_tpc.ini', 'uptp-4STAs-11ax-Udp-BoraFw-TPC-Topology3', 'throughput_sum.awk', '394.80736', 0, 1, # IRUI, 4STA MU-OFDMA, Max power, PER-based RA
    0, 'biTp_fwcode_udp_tpc.ini', 'uptp-4STAs-11ax-Udp-BoraFw-TPC-Topology4', 'throughput_sum.awk', '385.63856', 0, 1, # IRUI, 4STA MU-OFDMA, Max power, PER-based RA
    0, 'biTp_fwcode_udp_tpc.ini', 'uptp-4STAs-11ax-Udp-BoraFw-TPC-Topology5', 'throughput_sum.awk', '380.11392', 0, 1, # IRUI, 4STA MU-OFDMA, Max power, PER-based RA
 
取代成

    0, 'biTp_fwcode_udp_tpc.ini', 'uptp-4STAs-11ax-Udp-BoraFw-TPC-Topology3', 'throughput_sum.awk', '1', 0, 1, # IRUI, 4STA MU-OFDMA, Max power, PER-based RA
    0, 'biTp_fwcode_udp_tpc.ini', 'uptp-4STAs-11ax-Udp-BoraFw-TPC-Topology4', 'throughput_sum.awk', '1', 0, 1, # IRUI, 4STA MU-OFDMA, Max power, PER-based RA
    0, 'biTp_fwcode_udp_tpc.ini', 'uptp-4STAs-11ax-Udp-BoraFw-TPC-Topology5', 'throughput_sum.awk', '1', 0, 1, # IRUI, 4STA MU-OFDMA, Max power, PER-based RA

可以用
:'<,'>s/, '[0-9].*'/, '1'/g