1. 程式人生 > >軟體測試之bug分析定位技巧

軟體測試之bug分析定位技巧

  • 檢視壓力——tail -f as.log | grep '^NOTICE' | awk '{print $3}' | uniq -c
  • 排除日誌中的特定內容——grep -v 'pattern' as.log
  • 只輸出感興趣的內容——grep -o 'proctime:toal:\d+' as.log;grep -o 'proctime:toal:\d+' as.log | grep -o '\d+ ';grep -o 'proctime:toal:\d+' as.log | grep -o '\d+ ' | sort -n | uniq -c
  • 將wf日誌歸類——grep -o '\w+\.(cpp|h):\d+' as.log.wf | sort | uniq -c