scripts: Add rg shortcut to summarize sv-test
@@ -10,5 +10,10 @@ else
exit 1
fi
+if [ $# -ge 0 ]; then
+ # Search trough the logs
+ rg "$(echo $@)" $LOG_DIR -A 4 -p | less -r
+else
# Summarize and count the distinct error messages
find $LOG_DIR -name "*.log" | xargs grep --no-filename -E "^(error|fatal):" | sort | uniq -c | sort -rn | less
+fi
