當 test.txt
第 8 列的值中等於 “125”,輸出第 5 列的值並排序去重計算行數,結果重定向到 test_out.txt
cat test.txt | awk '{ if($8=="125") { print $5}}' | sort | uniq | wc -l >> test_out.txt
當 test.txt
第 8 列的值中等於 “125”,輸出第 5 列的值並排序去重計算行數,結果重定向到 test_out.txt
cat test.txt | awk '{ if($8=="125") { print $5}}' | sort | uniq | wc -l >> test_out.txt
批量建立軟鏈接 例如以下三個文件: arm-hisiv100-linux-uclibcgnueabi-addr2line arm-hisiv100-linux-uclibcgnueabi-gc