Wednesday, June 16, 2021

Linux查詢目錄大小

 du -chd 1 | sort -h 

這個指令才是把當前路徑中所有目錄所佔用大小做統計並且排序。


Reference:

https://www.mxp.tw/8171/


Sunday, September 2, 2018

Memory leak check command

valgrind --leak-check=full --show-leak-kinds=all --verbose opp_run -u Cmdenv -c uptp-2STAs-11ax-Udp-BoraFw-TPC -n ../..:../../../src -l ../../../src/inet biTp_fwcode_udp_tpc.ini -r 2 &> ul_twoSta_tpc_debug2.txt

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